Zirr bin Hubaysh reported,

I asked Ubayy bin Kaab رضي الله عنه, saying, "Your brother Ibn Masud says, 'Whoever stands in prayer the whole year will catch Laylat al-Qadr.'"He replied, "May Allah have mercy on him. He intended that people should not rely on it. He knew well that it is in Ramadan, that it is in the last ten nights, and that it is the twenty-seventh night."Then he swore, without making any exception, that it is the twenty-seventh night.I asked, "On what basis do you say this, Abu Mundhir?"He answered, "By the sign, or the indication, which the Messenger of Allah ﷺ told us about, that the sun rises that day without rays."

Azami 4682

Sahih

عن زر بن حبيش قال

سألت أبي بن كعب رضي الله عنه، فقلت: إن أخاك ابن مسعود يقول: من يقم الحول يصب ليلة القدر. فقال: رحمه الله، أراد أن لا يتكل الناس. أما إنه قد علم أنها في رمضان، وأنها في العشر الأواخر وأنها ليلة سبع وعشرين. ثم حلف لا يستثني أنها ليلة سبع وعشرين. فقلت: بأي شيء تقول ذلك؟ يا أبا المنذر؟ قال: بالعلامة أو بالآية التي أخبرنا رسول الله ﷺ أنها تطلع يومئذ لا شعاع لها.

الأعظمي 4682صحيح
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
Those who said Laylat al-Qadr is on the twenty-seventh of Ramadan
Numbering
Jami al-Kamil 4682 (2nd edition)
Azami 4682