Abdullah bin Umar reported,

Umar had vowed to perform a night of seclusion in the Sacred Mosque. He asked the Messenger of Allah ﷺ about it, and he instructed him to fulfill the seclusion.

Nasai 3852

Sahih

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

عن ابن عمر قال

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

النسائي 3852صحيح
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 3852
Nasai 3852