Yesterday before mass I went to confession and by the time I was in the confessional, the bells of the consecration were ringing. My pennance was 12 Our Fathers and 12 Hail Mary’s. (I had confessed some mortal sins, and therefore HAD to confess before I could recieve the Eucharist) I went to a side chapel to try to pray my pennance quickly before recieving communion. Well, I just could not pray while hearing what was going on in the main part of the Church. At one point they were actually saying the Our Father while I was, but at a different
point, and I was just lost. So I gave up, and resolved to do my
pennance after mass. I recieved communion. Was this correct?
Yes, you were okay. Please review this post in which I describe that the validity of the absolution is not dependent on doing the penance assigned by the confessor.