The Messenger of Allah ﷺ used to seclude himself in the mosque during the last ten days of Ramadan, and he would say, "Seek out Laylat al-Qadr in the last ten days of Ramadan."
حدثني محمد أخبرنا عبدة عن هشام بن عروة عن أبيه
كان رسول الله ﷺ يجاور في العشر الأواخر من رمضان ويقول تحروا ليلة القدر في العشر الأواخر من رمضان