Abu Dawud Book 2, Hadith Number 1442.

Chapter : Excellence of offering surrogatory prayers in ones house.

Narated By Zaid b. Thabit : The Apostle of Allah (PBUH) 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. If on any night the Apostle of Allah (PBUH) did not come out, they would cough, raise their voices and threw sand and pebbles on his door. The Apostle of Allah (PBUH)came out to them in anger and said: O people, you keep 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 the house except obligatory prayer.