It was narrated from Al'Irbad bin Sariyah that the Messenger of Allah (ﷺ) used to send Salah on the first row three times and on the second row once.
Sunan an-Nasa'i Book 10, Hadith 41