Yunus bin Ubayd (may Allah have mercy on him) narrates: I said to al-Hasan al-Basri (may Allah have mercy on him), or he was asked: What is your view about this saying of the Messenger of Allah (peace and blessings be upon him): "The servant remains in a state of prayer as long as he stays in his place of prayer"? I asked: "Does it mean the particular spot where he sat and prayed?" He said: "No, rather the whole mosque (is included in this ruling)."
Its chain is sahih (authentic), and its narrators are narrators of the Sahih (Bukhari and Muslim).
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 1013