Ayesha reported,

The Messenger of Allah ﷺ went out in the middle of the night and prayed in the mosque, leading the people in prayer. The narrator continued the hadith, and in it she said, "He used to encourage them to pray during the nights of Ramadan without making it an absolute obligation, saying, 'Whoever stands in prayer on Laylat al-Qadr out of faith and seeking reward will have his past sins forgiven.'"She said, "The Messenger of Allah ﷺ passed away while the matter remained on this practice."

Nasai 2195

Sahih

أخبرنا زكريا بن يحيى قال أنبأنا إسحق قال أنبأنا عبد الله بن الحارث عن يونس الأيلي عن الزهري قال أخبرني عروة بن الزبير أن

عائشة أخبرته

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

النسائي 2195صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Fasting
Chapter
Reward for whoever observed Ramadan in prayer and fasted it out of faith and seeking reward, and the difference of opinion regarding Zuhri concerning the report about that
Numbering
Darussalam 2195
Nasai 2195