Sahih al-Bukhari, Book 32, Hadith 9 (Bukhari 1949)

Narrated Ibn `Abbas:

Allah's Messenger (ﷺ) said, "The Night of Qadr is in the last ten nights of the month (Ramadan), either on the first nine or in the last (remaining) seven nights (of Ramadan)." Ibn `Abbas added, "Search for it on the twenty-fourth (of Ramadan).