Ubayy bin Kaab reported,

Someone asked, "Abu al-Mundhir, how do you know it is the twenty-seventh night?"He replied, "Yes, the Messenger of Allah ﷺ informed us that it is the night whose morning the sun rises without rays. So we counted and remembered. By Allah, Ibn Masud knew that it is in Ramadan, and that it is the twenty-seventh night, but he disliked telling you so that you would not rely on it alone."

Tirmidhi 793

Sahih

حدثنا واصل بن عبد الأعلى الكوفي حدثنا أبو بكر بن عياش عن عاصم عن زر قال

قلت لأبي بن كعب

أنى علمت أبا المنذر أنها ليلة سبع وعشرين قال بلى أخبرنا رسول الله ﷺ أنها ليلة صبيحتها تطلع الشمس ليس لها شعاع فعددنا وحفظنا والله لقد علم ابن مسعود أنها في رمضان وأنها ليلة سبع وعشرين ولكن كره أن يخبركم فتتكلوا

الترمذي 793صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Fasting
Chapter
Laylat al-Qadr
Numbering
Darussalam 793
Tirmidhi 793