The Messenger of Allah ﷺ said, "Seek out Laylat al-Qadr on the odd nights of the last ten nights of Ramadan."
أن رسول الله ﷺ قال: تحروا ليلة القدر الوتر من العشر الأواخر من رمضان.
Bukhari narrated it in the chapter on the virtue of Laylat al-Qadr (2017) via Abu Suhayl, from his father, from Ayesha, and he mentioned it.He also narrated it (2020), as did Muslim in the Book of Fasting (1169), both via Hisham bin Urwa, from his father, from Ayesha, who said, "The Messenger of Allah ﷺ used to retreat in seclusion during the last ten nights of Ramadan and would say, 'Seek Laylat al-Qadr in the last ten nights of Ramadan.'" This wording is Bukhari's.The other hadiths about Laylat al-Qadr are mentioned in the Book of Fasting.