ON THE SUBJECT OF 190 THE VIRTUE OF WAITING FOR THE PRAYER; REMAINING IN THE MOSQUE H 1077 "As long as you remain in the mosque for the purpose of prayer and it is only this reason that prevents you from returning home, you will be deemed to be occupied in prayer." R 1077 Bukhari and Muslim with a chain up to Abu Hurairah who related that the Messenger of Allah, praise and peace be upon him, said this.
باب فضل انتظار الصلاة 1061 - وعن أبي هريرة رضي الله عنه : أنَّ رَسُول اللهِ صلى الله عليه وآله وسلم ، قَالَ : "لا يَزَالُ أحَدُكُمْ في صَلاَةٍ مَا دَامَتِ الصَّلاَةُ تَحْبِسُهُ ، لا يَمنَعُهُ أنْ يَنقَلِبَ إلى أهلِهِ إلاَّ الصَّلاةُ" متفقٌ عَلَيْهِ .