I would not seek it, based on what I heard from the Messenger of Allah ﷺ, except in the last ten nights, for I heard him say, "Seek it when nine nights remain, or when seven remain, or when five remain, or when three remain, or on the final night."The narrator said, Abu Bakra used to pray during the first twenty nights of Ramadan as he prayed throughout the rest of the year, but when the last ten nights began, he would exert himself in worship.
حدثنا حميد بن مسعدة حدثنا يزيد بن زريع حدثنا عيينة بن عبد الرحمن قال حدثني أبي قال ذكرت ليلة القدر عند
ما أنا ملتمسها لشيء سمعته من رسول الله ﷺ إلا في العشر الأواخر فإني سمعته يقول التمسوها في تسع يبقين أو في سبع يبقين أو في خمس يبقين أو في ثلاث أو اخر ليلة قال وكان أبو بكرة يصلي في العشرين من رمضان كصلاته في سائر السنة فإذا دخل العشر اجتهد
[Its chain of transmission is sahih] Nasai also narrated it in Kubra, no. 3404, from Humayd bin Masada with the same chain. Ibn Khuzayma graded it sahih, no. 2175, as did Ibn Hibban (Ihsan), no. 3678, and Hakim, 1/438, and Dhahabi agreed with him.