Sahl As-Sa'idi, may Allah be pleased with him, said:"I heard the Messenger of Allah (ﷺ) say: 'Whoever is in the Masjid waiting for the prayer, he is in a state of prayer
Hadith No. 734
Sunan an Nasai
Gradings:
Abu Ghuddah:
Sahih
Al-Albani:
Sahih
Zubair Ali Zai:
Isnaad Hasan