Abdullah bin Abbas reported,

The Prophet ﷺ said, "Seek Laylat al-Qadr in the last ten nights of Ramadan, when nine nights remain, when seven remain, when five remain."In another narration, "It is in the last ten nights, when nine have passed, or when seven remain."

Azami 4674

Sahih

عن ابن عباس

أن النبي ﷺ قال: التمسوها في العشر الأواخر من رمضان، ليلة القدر في تاسعة تبقى، في سابعة تبقى، في خامسة تبقى. وفي رواية: هي في العشر الأواخر، في تسع يمضين، أو في سبع يبقين.

الأعظمي 4674صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Fasting
Chapter
Virtue of Laylat al-Qadr and the striving of the Prophet ﷺ ﷺ in it
Section
Laylat al-Qadr being on the twenty-first, twenty-third, and twenty-fifth
Numbering
Jami al-Kamil 4674 (2nd edition)
Azami 4674