Abu Saeed Khudri reported,

The Messenger of Allah ﷺ used to perform itikaf during the middle ten days of Ramadan. One year he observed itikaf, and when the night of the twenty-first came, which was the night after which he would normally leave his place of seclusion in the morning, he said, "Whoever performed itikaf with me, let him continue into the last ten days. I was shown this Night, then I was made to forget it, but I saw myself prostrating in water and mud on its morning. So seek it in the last ten days, and seek it in every odd night."That night the sky rained, and the mosque had a roof of palm branches, so it leaked. My own eyes saw the Messenger of Allah ﷺ with traces of water and mud on his forehead on the morning of the twenty-first.

Bukhari 2027

Sahih

حدثنا إسماعيل قال حدثني مالك عن يزيد بن عبد الله بن الهاد عن محمد بن إبراهيم بن الحارث التيمي عن أبي سلمة بن عبد الرحمن

عن أبي سعيد الخدري رضي الله عنه

أن رسول الله ﷺ كان يعتكف في العشر الأوسط من رمضان فاعتكف عاما حتى إذا كان ليلة إحدى وعشرين وهي الليلة التي يخرج من صبيحتها من اعتكافه قال من كان اعتكف معي فليعتكف العشر الأواخر وقد أريت هذه الليلة ثم أنسيتها وقد رأيتني أسجد في ماء وطين من صبيحتها فالتمسوها في العشر الأواخر والتمسوها في كل وتر فمطرت السماء تلك الليلة وكان المسجد على عريش فوكف المسجد فبصرت عيناي رسول الله ﷺ على جبهته أثر الماء والطين من صبح إحدى وعشرين

البخاري 2027صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Itikaf
Chapter
Itikaf in the last ten days
Numbering
Darussalam 2027
Bukhari 2027