«لا يزال العبد في صلاة ما دام في المسجد ينتظر الصلاة ما لم يحدث»
The Prophet (peace and blessings be upon him) said:
"The servant continues to be (counted as in prayer) as long as he is in the mosque waiting for the prayer, so long as he does not lose his ablution."