Abu Dharr reported,

We fasted Ramadan with the Messenger of Allah ﷺ, and he did not lead us in any night prayer during the month until seven nights remained. Then he stood with us in prayer until a third of the night had passed.When the sixth remaining night came, he did not lead us in prayer. When the fifth remaining night came, he stood with us in prayer until half the night had passed.I said, "Messenger of Allah, if only you would lead us in voluntary prayer for the rest of this night."He replied, "When a man prays with the imam until he finishes, it is recorded for him as having prayed the entire night."When the fourth remaining night came, he did not lead us in prayer. When the third remaining night came, he gathered his family, his wives, and the people, and stood with us in prayer until we feared we would miss the falah.I asked, "What is the falah?"He said, "The pre-dawn meal."Then he did not lead us in night prayer for the rest of the month.

Abu Dawud 1375

Sahih

حدثنا مسدد حدثنا يزيد بن زريع أخبرنا داود بن أبي هند عن الوليد بن عبد الرحمن عن جبير بن نفير

عن أبي ذر قال

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

أبو داود 1375صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Ramadan
Chapter
Night prayer during Ramadan
Numbering
Darussalam 1375
Abu Dawud 1375