Hadithcore
Sahih Muslim, 1166
sahih

Abu Huraira (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying:

I was shown Lailat-ul-Qadr; then some members of my family awoke me up, then I was caused to forget it. So seek it in the last week. Harmala said: (The Prophet (ﷺ) did not say:" I was made to forget," but he stated):" But I forgot it."

حَدَّثَنَا أَبُو الطَّاهِرِ، وَحَرْمَلَةُ بْنُ يَحْيَى، قَالاَ أَخْبَرَنَا ابْنُ وَهْبٍ، أَخْبَرَنِي يُونُسُ، عَنِ ابْنِ شِهَابٍ، عَنْ أَبِي سَلَمَةَ بْنِ عَبْدِ الرَّحْمَنِ، عَنْ أَبِي هُرَيْرَةَ، - رضى الله عنه - أَنَّاللَّهِ صلى الله عليه وسلم قَالَ ‏"‏ أُرِيتُ لَيْلَةَ الْقَدْرِ ثُمَّ أَيْقَظَنِي بَعْضُ أَهْلِي فَنُسِّيتُهَا فَالْتَمِسُوهَا فِي الْعَشْرِ الْغَوَابِرِ ‏"‏ ‏.‏ وَقَالَ حَرْمَلَةُ ‏"‏ فَنَسِيتُهَا ‏"‏ ‏.‏

References2 variants
In-Book Reference
Book 13, Hadith 274
USC-MSA web (English) reference
Book 6, Hadith 2624 (deprecated numbering scheme)
Sharh · explanationclick to expand
Laylat al-Qadr is a great night whose status Allah points out in Surat al-Qadr. In this night the Qur’an was revealed; worship in it is better than worship in a thousand months; the angels descend in it with the permission of Allah; and it contains safety, security, and peace. It is known to occur, but its time is unknown. Several versions are reported from the Prophet (may Allah's peace and blessings be upon him) regarding the specification of Laylat al-Qadr. This Hadīth is one of those versions, and in it the Prophet (may Allah's peace and blessings be upon him) said: "I was shown Laylat al-Qadr," i.e., I was made aware of the specification of Laylat al-Qadr and on which night it occurs, but "some members of my family woke me up." This indicates that the Prophet's sighting of it was in a dream. However, his dreams (may Allah's peace and blessings be upon him) and the dreams of the prophets (peace be upon them) were divine revelations. This does not denote that he did not learn about it during wakefulness. As the Prophet (may Allah's peace and blessings be upon him) was caused to forget it, he said: "So, seek it in the remaining ten days," i.e., try to find it in the remaining ten days, which are the last ten days of the month of Ramadan as a whole. Other versions in the Two Sahīh Collections state that it occurs on odd-numbered days within the last ten days of Ramadan. The Prophet's statement: "seek it" denotes encouragement to try to find it. This should be done by engaging in worship, supplication, and pious acts. This Hadīth mentions that the reason behind the Prophet (may Allah's peace and blessings be upon him) forgetting Laylat al-Qadr was that some members of his household awakened him. And it is mentioned in a Hadīth in the Sahīh Al-Bukhāri Collection, reported by ‘Ubādah ibn as-Sāmit (may Allah be pleased with him), that the reason behind that was a dispute and conflict between two men. And also in a Hadīth in the Sahīh Muslim Collection, reported by Abu Sa‘īd al-Khudri (may Allah be pleased with him), with the wording: "There came two men contending with each other and along with them was the devil." To reconcile these two Hadīths, this may either be taken to denote plurality; thus, the vision in the Hadīth of Abu Hurayrah (may Allah be pleased with him) was a dream. The forgetfulness happened because of awakening, and the vision in the Hadīth reported by others happened during wakefulness, while the forgetfulness occurred because of the mentioned dispute. Or it may be taken to suggest the occurring of the two stories, in which case the forgetfulness happened twice for two reasons. Or this may probably mean: Some members of my family awakened me, and I heard the dispute between the two men and got up to mediate between them. So, I was caused to forget it, due to my preoccupation with the two men. The Hadīth indicates that the Prophet (may Allah's peace and blessings be upon him) was subject to forgetfulness, in what Allah willed. It points out that Laylat al-Qadr lies in the last ten days of Ramadan. It urges us to seek Laylat al-Qadr..