Sunan an-Nasa'i 734
سنن النسائي#734Sahihأَخْبَرَنَا قُتَيْبَةُ، قَالَ حَدَّثَنَا بَكْرُ بْنُ مُضَرَ، عَنْ عَيَّاشِ بْنِ عُقْبَةَ، أَنَّ يَحْيَى بْنَ مَيْمُونٍ، حَدَّثَهُ قَالَ سَمِعْتُ سَهْلاً السَّاعِدِيَّ، - رضى الله عنه - يَقُولُ سَمِعْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم يَقُولُ " مَنْ كَانَ فِي الْمَسْجِدِ يَنْتَظِرُ الصَّلاَةَ فَهُوَ فى الصَّلاَةِ " .
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
Scholarly Authentication
The label above is the grade most of these scholars gave — one dissenting opinion no longer speaks for all of them. If any scholar calls a narration fabricated, that verdict is shown instead, whatever the others say. Each scholar's own wording:
In-book reference: 8:47