The Messenger of Allah ﷺ performed itikaf during the first ten days of Ramadan, then he performed itikaf during the middle ten days in a Turkish tent that had a mat covering its entrance. He took the mat in his hand and moved it to one side of the tent, then he poked his head out and spoke to the people, who drew near to him.He said, "I performed itikaf during the first ten days seeking this Night, then I performed itikaf during the middle ten days. Then someone came to me and said that it is in the last ten days. So whoever among you wishes to perform itikaf, let him do so." So the people performed itikaf with him.He said, "I have been shown that it is on an odd-numbered night, and that I will prostrate on its morning in mud and water."On the morning of the twenty-first night, he had stood in prayer until dawn. The sky had rained and the roof of the mosque leaked, so he saw mud and water. When he finished the dawn prayer, he came out with mud and water on his forehead and the tip of his nose. It was the twenty-first night of the last ten.
و حدثني محمد بن عبد الأعلى حدثنا المعتمر حدثنا عمارة بن غزية الأنصاري قال سمعت محمد بن إبراهيم يحدث عن أبي سلمة
إن رسول الله ﷺ اعتكف العشر الأول من رمضان ثم اعتكف العشر الأوسط في قبة تركية على سدتها حصير قال فأخذ الحصير بيده فنحاها في ناحية القبة ثم أطلع رأسه فكلم الناس فدنوا منه فقال إني اعتكفت العشر الأول ألتمس هذه الليلة ثم اعتكفت العشر الأوسط ثم أتيت فقيل لي إنها في العشر الأواخر فمن أحب منكم أن يعتكف فليعتكف فاعتكف الناس معه قال وإني أربئتها ليلة وتر وإني أسجد صبيحتها في طين وماء فأصبح من ليلة إحدى وعشرين وقد قام إلى الصبح فمطرت السماء فوكف المسجد فأبصرت الطين والماء فخرج حين فرغ من صلاة الصبح وجبينه وروثة أنفه فيهما الطين والماء وإذا هي ليلة إحدى وعشرين من العشر الأواخر