Abdullah bin Umar reported,

Umar had vowed during the days of ignorance to observe itikaf for one day. He asked the Messenger of Allah ﷺ about it, and he instructed him to fulfill the itikaf.

Nasai 3853

Sahih

أخبرنا أحمد بن عبد الله بن الحكم قال حدثنا محمد بن جعفر قال حدثنا شعبة قال سمعت عبيد الله عن نافع

عن ابن عمر

أن عمر كان جعل عليه يوما يعتكفه في الجاهلية فسأل رسول الله ﷺ عن ذلك فأمره أن يعتكفه

النسائي 3853صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Oaths and vows
Chapter
If he made a vow then accepted Islam before fulfilling it
Numbering
Darussalam 3853
Nasai 3853