Abu Amr al-Shaybani narrates: Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) used to patrol the mosque at night, and he would not leave anyone in it without sending him out, except for a person who was praying.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 9234