Iqama was pronounced and we stood up and made rows straight till he (the Holy Prophet) stood at his place of worship (the place ahead of the rows where he stood to lead the prayer) before takbir tahrima. He reminded to (himself something) and went back saying that we should stand at our places and not leave them. We waited, till he came back to us and he had taken a bath and water trickled out of his head and then led us in prayer. (Using translation from Muslim 605a)
أَنَّهُ سَمِعَ أَبَا هُرَيْرَةَ يَقُولُ أُقِيمَتِ الصَّلَاةُ فَقُمْنَا فَعُدِّلَتِ الصُّفُوفُ قَبْلَ أَنْ يَخْرُجَ إِلَيْنَا رَسُولُ اللهِ ﷺ فَأَتَانَا رَسُولُ اللهِ ﷺ حَتَّى إِذَا قَامَ فِي مُصَلَّاهُ قَبْلَ أَنْ يُكَبِّرَ فَانْصَرَفَ فَقَالَ لَنَا «مَكَانَكُمْ» فَلَمْ نَزَلْ قِيَامًا نَنْظُرُهُ حَتَّى خَرَجَ إِلَيْنَا قَدِ اغْتَسَلَ يَنْطِفُ رَأْسَهُ مَاءً فَكَبَّرَ فَصَلَّى