(5) باب تَحْرِيضِ النَّبِيِّ صلى الله عليه وسلم عَلَى صَلاَةِ اللَّيْلِ وَالنَّوَافِلِ مِنْ غَيْرِ إِيجَابٍ
Narrated `Aisha the mother of the faithful believers:
One night Allah's Messenger (ﷺ) offered the prayer in the Mosque and the people followed him. The next night he also offered the prayer and too many people gathered. On the third and the fourth nights more people gathered, but Allah's Messenger (ﷺ) did not come out to them. In the morning he said, "I saw what you were doing and nothing but the fear that it (i.e. the prayer) might be enjoined on you, stopped me from coming to you." And that happened in the month of Ramadan.
Reference: Sahih al-Bukhari 1129
In-book reference: Book 19, Hadith 9
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 2, Book 21, Hadith 229