Ayesha reported,

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."

Bukhari 729

Sahih

حدثنا محمد بن سلام قال أخبرنا عبدة عن يحيى بن سعيد الأنصاري عن عمرة

عن عائشة قالت

كان رسول الله ﷺ يصلي من الليل في حجرته وجدار الحجرة قصير فرأى الناس شخص النبي ﷺ فقام أناس يصلون بصلاته فأصبحوا فتحدثوا بذلك فقام الليلة الثانية فقام معه أناس يصلون بصلاته صنعوا ذلك ليلتين أو ثلاثا حتى إذا كان بعد ذلك جلس رسول الله ﷺ فلم يخرج فلما أصبح ذكر ذلك الناس فقال إني خشيت أن تكتب عليكم صلاة الليل

البخاري 729صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Adhan
Chapter
If there is a wall or screen between the imam and the congregation
Numbering
Darussalam 729
Bukhari 729