It was the practice of the Prophet (peace and blessings be upon him):
"He (peace and blessings be upon him) would seek forgiveness for the front row three times and for the second row once."
Hadith Referenceصحیح الجامع الصغیر / حرف الكاف / 4952
Hadith Gradingالألبانی:صحيح
Hadith Takhrij[حم هـ ك] عن عرباض. صحيح الترغيب ١/٧٧: ابن خزيمة، حب.