Zaid bin Thabit said: The Messenger of Allah ﷺ built a chamber in the mosque. He used to come out at night and pray there. They (the people) also prayed along with him. They would come (to prayer) every night. One night the Messenger of Allah ﷺ did not come out; they coughed, raised their voices and threw pebbles on his door. The Messenger of Allah ﷺ came out to time in anger and said: O People, you kept on doing this till I thought that it will be prescribed for you. Offer your prayers in your houses, for a man's prayer is better in his house except obligatory prayer.
Hadith Referenceسنن ابي داود / كتاب تفريع أبواب الوتر / 1447
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:صحيح بخاري (6113) صحيح مسلم (781)
Hadith Takhrij« انظرحدیث رقم (1044)، (تحفة الأشراف:3698) (صحیح) »