Sayyiduna Sahl bin Sa’d Sa’idi (may Allah be pleased with him) narrates: I heard the Prophet Muhammad (peace and blessings be upon him) say: “Whoever remains in the mosque waiting for the prayer is considered to be in the state of prayer.”
Hadith Referenceصحیح ابن حبان / كتاب الصلاة / 1751
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «التعليق الرغيب» (1/ 160).فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده حسن.