Umar bin Khattab reported,

Messenger of Allah, I vowed during the days of ignorance to perform itikaf for one night in the Sacred Mosque.He replied, "Fulfill your vow."

Bukhari 6697

Sahih

حدثنا محمد بن مقاتل أبو الحسن أخبرنا عبد الله أخبرنا عبيد الله بن عمر عن نافع عن ابن عمر أن

عمر قال

يا رسول الله إني نذرت في الجاهلية أن أعتكف ليلة في المسجد الحرام قال أوف بنذرك

البخاري 6697صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Oaths and vows
Chapter
If one vowed or swore not to speak to a person during the Jahiliyyah then became Muslim
Numbering
Darussalam 6697
Bukhari 6697