Mishkat al-Masabih 2086
وَعَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ رَضِيَ اللَّهُ عَنْهُمْ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ اعْتَكَفَ الْعَشْرَ الْأَوَّلَ مِنْ رَمَضَانَ ثُمَّ اعْتَكَفَ الْعَشْرَ الْأَوْسَطَ فِي قُبَّةٍ تُرْكِيَّةٍ ثُمَّ أَطْلَعَ رَأسه. فَقَالَ: «إِنِّي اعتكفت الْعشْر الأول ألتمس هَذِه اللَّيْلَة ثمَّ اعتكفت الْعَشْرَ الْأَوْسَطَ ثُمَّ أُتِيتُ فَقِيلَ لِي إِنَّهَا فِي الْعشْر الْأَوَاخِر فَمن اعْتَكَفْ مَعِي فَلْيَعْتَكِفِ الْعَشْرَ الْأَوَاخِرَ فَقَدْ أُرِيتُ هَذِهِ اللَّيْلَةَ ثُمَّ أُنْسِيتُهَا وَقَدْ رَأَيْتُنِي أَسْجُدُ فِي مَاءٍ وَطِينٍ مِنْ صَبِيحَتِهَا فَالْتَمِسُوهَا فِي الْعَشْرِ الْأَوَاخِرِ وَالْتَمِسُوهَا فِي كُلِّ وِتْرٍ» . قَالَ: فَمَطَرَتِ السَّمَاءُ تِلْكَ اللَّيْلَةَ وَكَانَ الْمَسْجِدُ عَلَى عَرِيشٍ فَوَكَفَ الْمَسْجِدُ فَبَصُرَتْ عَيْنَايَ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَعَلَى جَبْهَتِهِ أَثَرُ المَاء والطين وَالْمَاء مِنْ صَبِيحَةِ إِحْدَى وَعِشْرِينَ. مُتَّفَقٌ عَلَيْهِ فِي الْمَعْنَى وَاللَّفْظُ لِمُسْلِمٍ إِلَى قَوْلِهِ: فَقِيلَ لِي: إِنَّهَا فِي الْعشْر الْأَوَاخِر . وَالْبَاقِي للْبُخَارِيّ
From Abu Saʿid al-Khudri, may Allah be pleased with him, that the Messenger of Allah ﷺ made iʿtikaf in the first ten [days] of Ramadan, then made iʿtikaf in the middle ten in a Turkish tent, then put his head out and said: "I made iʿtikaf in the first ten seeking this night, then I made iʿtikaf in the middle ten. Then [someone] came to me and I was told that it is in the last ten. So whoever has made iʿtikaf with me, let him make iʿtikaf in the last ten. I was shown this night, then made to forget it, and I saw myself prostrating in water and mud on its morning. So look for it in the last ten, and look for it in every odd [night]." He said: The sky rained that night, and the mosque was [roofed] on a trellis, so the mosque leaked. My eyes saw the Messenger of Allah ﷺ with the trace of water and mud on his forehead, on the morning of the twenty-first. Agreed upon in meaning; the wording is Muslim's up to his words: "I was told that it is in the last ten," and the rest is al-Bukhari's.