Bulugh al-Maram 704
وَعَنِ ابْنِ عُمَرَ رَضِيَ اللَّهُ عَنْهُمَا: أَنَّ رِجَالًا مِنْ أَصْحَابِ النَّبِيِّ - صلى الله عليه وسلم - أُرُوا ⦗٢٠٣⦘ لَيْلَةَ الْقَدْرِ فِي الْمَنَامِ, فِي السَّبْعِ الْأَوَاخِرِ, فَقَالَ رَسُولُ اللَّهِ - صلى الله عليه وسلم - «أَرَى رُؤْيَاكُمْ قَدْ تَوَاطَأَتْ فِي السَّبْعِ الْأَوَاخِرِ, فَمَنْ كَانَ مُتَحَرِّيَهَا فَلْيَتَحَرَّهَا فِي السَّبْعِ الْأَوَاخِرِ». مُتَّفَقٌ عَلَيْهِ.
From Ibn ʿUmar, may Allah be pleased with them both, that some men among the Companions of the Prophet ﷺ were shown Laylat al-Qadr in dreams, in the last seven [nights]. The Messenger of Allah ﷺ said: "I see that your dreams agree on the last seven, so whoever seeks it, let him seek it in the last seven." Agreed upon.