Umar had vowed during the days of ignorance to perform itikaf in the Sacred Mosque. The narrator said, "I think he said, for one night." The Messenger of Allah ﷺ said to him, "Fulfill your vow."
حدثنا عبيد بن إسماعيل حدثنا أبو أسامة عن عبيد الله عن نافع
أن عمر رضي الله عنه نذر في الجاهلية أن يعتكف في المسجد الحرام قال أراه قال ليلة قال له رسول الله ﷺ أوف بنذرك