The Messenger of Allah ﷺ prayed in the masjid one night, and a number of people prayed along with him. He prayed again the following night, and more people came. Then on the third or fourth night they gathered, but the Messenger of Allah ﷺ did not come out to them. In the morning he said, "I saw what you did, and nothing kept me from coming out to you except that I feared it would be made obligatory upon you." This was during Ramadan.
حدثني يحيى عن مالك عن ابن شهاب عن عروة بن الزبير
أن رسول الله ﷺ صلى في المسجد ذات ليلة فصلى بصلاته ناس ثم صلى الليلة القابلة فكثر الناس ثم اجتمعوا من الليلة الثالثة أو الرابعة فلم يخرج إليهم رسول الله ﷺ فلما أصبح قال قد رأيت الذي صنعتم ولم يمنعني من الخروج إليكم إلا أني خشيت أن تفرض عليكم وذلك في رمضان