[Machine] The Messenger of Allah ﷺ used to retreat for worship in the middle ten days of Ramadan, seeking Laylat al-Qadr (the Night of Decree) before it was revealed to him. When the middle ten days were over, he commanded for the construction of the mosque to be halted, and it was demolished. Then it was revealed to him in the last ten days, so he commanded for the mosque to be reconstructed in its original place, and he retreated for worship in the last ten days. He came out to us and said, "O people, I was informed about the Night of Decree, so I came out in order to inform you or be informed by you about it. However, two men quarreled with each other, and Satan made me forget it. So seek it in the ninth, seventh, and fifth nights." Abu Nadrah said, "So I said to Abu Sa'id, 'You, the Sahaba (companions) of the Messenger of Allah ﷺ, are the most knowledgeable about our number, so how should we count it?' He said, 'Indeed, we are more knowledgeable about that than you. When the twenty-first night passes, the ninth follows it. Then when the one after has passed, the seventh follows it. Then when the one after has passed, the fifth follows it.'" Abu Mas'ud said, "Abu Al-'Ala' informed me by way of Mu'attib, who narrated from Mu'awiyah, that he said, 'And on the third night...'"
اعْتَكَفَ رَسُولُ اللهِ ﷺ الْعَشْرَ الْأَوْسَطَ مِنْ شَهْرِ رَمَضَانَ يَلْتَمِسُ لَيْلَةَ الْقَدْرِ قَبْلَ أَنْ تُبَانَ لَهُ فَلَمَّا انْقَضَيْنَ أَمَرَ بِالْبِنَاءِ فَنُقِضَ وَرُفِعَ ثُمَّ أُبِينَتْ لَهُ فِي الْعَشْرِ الْأَوَاخِرِ فَأَمَرَ بِالْبِنَاءِ فَأُعِيدَ مَكَانَهُ وَاعْتَكَفَ فِي الْعَشْرِ الْأَوَاخِرِ وَخَرَجَ عَلَيْنَا فَقَالَ يَا أَيُّهَا النَّاسُ إِنِّي أُنْبِئْتُ بِلَيْلَةِ الْقَدْرِ فَخَرَجْتُ كَيْمَا أُحَدِّثُكُمْ بِهَا أَوْ أُخْبِرُكُمْ بِهَا فَتَلَاحَى رَجُلَانِ يَحْتَقَّانِ مَعَهُمَا الشَّيْطَانُ فَأُنْسِيتُهَا فَالْتَمِسُوهَا فِي التَّاسِعَةِ وَالسَّابِعَةِ وَالْخَامِسَةِ 8532 قَالَ أَبُو نَضْرَةَ فَقُلْتُ لِأَبِي سَعِيدٍ إِنَّكُمْ أَصْحَابُ رَسُولِ اللهِ ﷺ أَعْلَمُ بِالْعَدَدِ مِنَّا فَكَيْفَ نَعُدُّهُنَّ؟ قَالَ أَجَلْ نَحْنُ أَعْلَمُ بِذَلِكَ مِنْكُمْ إِذَا مَضَتْ إِحْدَى وَعِشْرُونَ فَالَّتِي تَلِيهَا التَّاسِعَةُ فَإِذَا مَضَتِ الَّتِي تَلِيهَا فَالَّتِي تَلِيهَا السَّابِعَةُ فَإِذَا مَضَتِ الَّتِي تَلِيهَا فَالَّتِي تَلِيهَا الْخَامِسَةُ قَالَ أَبُو مَسْعُودٍ وَأَخْبَرَنِي أَبُو الْعَلَاءِ عَنْ مُطَرِّفٍ عَنْ مُعَاوِيَةَ أَنَّهُ قَالَ وَفِي الثَّالِثَةِ