Abu Dharr reported,

We fasted with the Messenger of Allah ﷺ, and he did not lead us in night prayer until seven nights of the month remained. Then he stood with us in prayer until a third of the night had passed. He did not stand with us on the sixth night, but on the fifth he stood with us until half the night had passed.We said to him, "Messenger of Allah, if only you would lead us in voluntary prayer for the rest of this night."He replied, "Whoever prays with the imam until he finishes, it is recorded for him as praying the entire night."Then he did not lead us in prayer until only three nights of the month remained. On the third of these he prayed with us, called his family and his wives, and stood with us in prayer until we feared we would miss the falah.I asked him, "What is the falah?"He answered, "The pre-dawn meal."

Tirmidhi 806

Sahih

حدثنا هناد حدثنا محمد بن الفضيل عن داود بن أبي هند عن الوليد بن عبد الرحمن الجرشي عن جبير بن نفير

عن أبي ذر قال

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

الترمذي 806صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Fasting
Chapter
Night prayer during Ramadan
Numbering
Darussalam 806
Tirmidhi 806