It is narrated from Sayyiduna al-Irbad bin Sariyah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) would seek forgiveness for the front row three times and for the second row once.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 15730