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.