Abu Sa‘īd al-Khudri (may Allah be pleased with him) said that the Messenger of Allah (may Allah's peace and blessings be upon him) used to perform I‘tikāf in the middle ten days of Ramadan, in pursuit of Laylat al-Qadr. One year, he stayed as usual in I‘tikāf up to the night of the twenty-first (of Ramadan). On the morning of that night, he was supposed to end his I‘tikāf. However, he learned that Laylat al-Qadr would be in the last ten nights. So he told his Companions who stayed in I‘tikāf with him the middle ten nights to continue their I‘tikāf the last ten nights. He also told them that Allah, the Almighty, showed him Laylat al-Qadr in his sleep, but later made him forget which night it was. However, in that year he saw in his sleep a sign of that night, which was his prostration in the morning prayer on water and mud. Allah fulfilled the vision of His Prophet (may Allah's peace and blessings be upon him) and it rained on the night of the twenty-first. The mosque of the Prophet (may Allah's peace and blessings be upon him) was built like a lattice; its pillars were made of palm trunks and its roof made of palm stalks and fronds. Therefore, the roof leaked from rain, and the Prophet (may Allah's peace and blessings be upon him) prostrated on water and mud in prayer on the morning of the twenty-first.
عمدة الأحكام، تأليف: عبد الغني بن عبد الواحد المقدسي، تحقيق: محمود الأرناؤوط، دار الثقافة العربية ومؤسسة قرطبة، الطبعة الثانية، 1408هـ. تيسير العلام، تأليف: عبد الله بن عبد الرحمن البسام، تحقيق محمد صبحي بن حسن حلاق، مكتبة الصحابة ومكتبة التابعين، الطبعة العاشرة، 1426 هـ. تأسيس الأحكام شرح عمدة الأحكام، تأليف: أحمد بن يحي النجمي: نسخة إلكترونية لا يوجد بها بيانات نشر. تنبيه الأفهام شرح عمدة الإحكام، تأليف: محمد بن صالح العثيمين، مكتبة الصحابة ومكتبة التابعين، الطبعة الأولى: 1426هـ. الإفهام في شرح عمدة الأحكام، للشيخ عبد العزيز بن عبد الله بن باز، تحقيق: سعيد بن علي بن وهف القحطاني، الطبعة الأولى، 1435 هـ خلاصة الكلام على عمدة الأحكام، تأليف: فيصل بن عبد العزيز آل مبارك، الطبعة الثانية، 1412 هـ صحيح البخاري ، تأليف: محمد بن إسماعيل البخاري ، تحقيق: محمد زهير الناصر، الناشر: دار طوق النجاة الطبعة: الأولى، 1422هـ صحيح مسلم ، تأليف: مسلم بن الحجاج النيسابوري، تحقيق: محمد فؤاد عبد الباقي، الناشر: دار إحياء التراث العربي – بيروت.