Some men amongst the companions of the Prophet ﷺ were shown in their dreams that the night of Qadr was in the last seven nights of Ramadan. Messenger of Allah ﷺ said, "It seems that all your dreams agree that (the Night of Qadr) is in the last seven nights, and whoever wants to search for it (i.e. the Night of Qadr) should search in the last seven (nights of Ramadan). (Using translation from Bukhārī 2015)
أُرِيَ رِجَالٌ مِنْ أَصْحَابِ النَّبِيِّ ﷺ فِي الْمَنَامِ أَنَّ لَيْلَةَ الْقَدْرِ فِي السَّبْعِ الْأَوَاخِرِ مِنْ رَمَضَانَ فَقَالَ رَسُولُ اللهِ ﷺ «أَسْمَعُ رُؤْيَاكُمْ قَدْ تَوَاطَأَتْ أَنَّهَا فِي السَّبْعِ الْأَوَاخِرِ فَمَنْ كَانَ مُتَحَرِّيَهَا فَلْيَتَحَرَّهَا فِي السَّبْعِ الْأَوَاخِرِ»