Hadithcore
Mishkat al-Masabih, 2092

Abu Bakra said he heard God’s messenger say, “Seek it (meaning <i>lailat al-qadr</i>), on the twenty-first, twenty-third, twenty-fifth, twentyseventh, or on the last night.” Tirmidhi transmitted it.

وَعَنْ أَبِي بَكْرَةَ قَالَ: سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ: «الْتَمِسُوهَا يَعْنَى لَيْلَة الْقدر فِي تسع بَقينَ أَو فِي سبع بَقينَ أَو فِي خمس بَقينَ أَوْ ثَلَاثٍ أَوْ آخِرِ لَيْلَةٍ» . رَوَاهُ التِّرْمِذِيُّ

References1 variant
In-Book Reference
Book 7, Hadith 133