Once Iqama was pronounced and the people had straightened the rows, Allah's Messenger (ﷺ)…

Sahih al-Bukhari Book 10 Hadith 37

Sahih al-Bukhari #640

Call to Prayers (Adhaan) 10:37

Narrated Abu Huraira:

Once Iqama was pronounced and the people had straightened the rows, Allah's Messenger (ﷺ) went forward (to lead the prayer) but he was Junub, so he said, "Remain in your places." And he went out, took a bath and returned with water trickling from his head. Then he led the prayer.

Chapter: If the Imam says, "Remain at your places till I return", then wait for him

Grade: Sahih