The Messenger of Allah ﷺ used to pray at night in his chamber. The wall of the chamber was low, so people saw the figure of the Prophet ﷺ and a group stood up and prayed along with his prayer. In the morning they spoke about it. On the second night he stood again, and people stood with him praying along with his prayer. They did this for two or three nights.After that, the Messenger of Allah ﷺ sat and did not come out. When morning came, the people mentioned it, and he said, "I feared that the night prayer might be made obligatory upon you."
حدثنا محمد بن سلام قال أخبرنا عبدة عن يحيى بن سعيد الأنصاري عن عمرة
كان رسول الله ﷺ يصلي من الليل في حجرته وجدار الحجرة قصير فرأى الناس شخص النبي ﷺ فقام أناس يصلون بصلاته فأصبحوا فتحدثوا بذلك فقام الليلة الثانية فقام معه أناس يصلون بصلاته صنعوا ذلك ليلتين أو ثلاثا حتى إذا كان بعد ذلك جلس رسول الله ﷺ فلم يخرج فلما أصبح ذكر ذلك الناس فقال إني خشيت أن تكتب عليكم صلاة الليل