That 'Umar said: Messenger of Allah, I took a vow in pre-Islamic times that I would stay…

Sunan Abu Dawud Book 22 Hadith 84

Sunan Abu Dawud #3325

Oaths and Vows (Kitab Al-Aiman Wa Al-Nudhur) 22:84

Narrated Ibn 'Umar:

That 'Umar said: Messenger of Allah, I took a vow in pre-Islamic times that I would stay in the sacred mosque (Masjid Haram) as a devotion (i'tikaf). The Prophet (ﷺ) said: Fulfill your vow.

Chapter: If A Person Made A Vow In Jahiliyyah Then Entered Islam

Grade: Sahih (Al-Albani)