Abdullah bin Umar reported,

Umar asked the Prophet ﷺ, saying, "I had vowed during the days of ignorance to perform itikaf for one night in the Sacred Mosque."The Prophet ﷺ replied, "Fulfill your vow."In a narration recorded by Bukhari, it adds, "So he performed itikaf for one night."

Azami 4706

Sahih

عن ابن عمر

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

الأعظمي 4706صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Fasting
Chapter
Itikaf
Section
Is fasting a condition of itikaf
Numbering
Jami al-Kamil 4706 (2nd edition)
Azami 4706