The Messenger of Allah ﷺ said, "When the prayer is announced, do not stand until you see that I have come out."
حدثنا أحمد بن محمد أخبرنا عبد الله بن المبارك أخبرنا معمر عن يحيى بن أبي كثير
قال رسول الله ﷺ إذا أقيمت الصلاة فلا تقوموا حتى تروني خرجت
Agreed upon. Muslim also reported it in "The Mosques," chapter "When should people stand up for prayer?", no. 604, from the narration of Mamar, and Bukhari, no. 637, from the narration of Yahya bin Abu Kathir, with the same chain.There is also a narration on this subject from Anas [Abd bin Humayd, no. 1259, and Tayalisi, no. 2028].