Yahya bin Maymun al-Hadrami (may Allah have mercy on him) states: Sayyiduna Sahl bin Sa'd al-Ansari (may Allah be pleased with him) passed by me while I was sitting in the mosque near the maqsurah. He said to me: "Shall I not tell you something I heard from the Messenger of Allah (peace and blessings be upon him)?" Beside me sat a man between whom and the Messenger of Allah (peace and blessings be upon him) there was no intermediary except this one (Sahl bin Sa'd (may Allah be pleased with him)). I said: "Certainly, may Allah set your affairs right; please do tell me." He said: I heard the Messenger of Allah (peace and blessings be upon him) say: "Whoever is in the mosque waiting for the prayer is in the state of prayer, as long as waiting for the prayer keeps him there."
Hadith Referenceمسند أبي يعلى الموصلي / حديث سهل بن سعد الساعدي عن النبي صلى الله عليه وسلم / 7550
Hadith Gradingمحدثین:إسناده جيد
Hadith Takhrij«حکم الحدیث مسند ابی یعلی محققاً تنسیق حسين سليم أسد - مکتبہ شاملہ :قال حسين سليم أسد: إسناده جيد . » «قال سعيد بن محمد السناري: قوى: مضى الكلام عليه قريبًا [برقم 7546]» «أخرجه سنن النسائي برقم: 734، وأخرجه المعجم الأوسط للطبراني برقم: 3218، مسند ابویعلیٰ ترقیم الاثری: 7512»