Sunan an-Nasa'i, Book 35, Hadith 61 (Nasa'i 3890)

It was narrated that Ibn 'Umar said:

"Umar had made a vow to spend a night in 'Itikaf in Al-Masjid Al-Haram. He asked the Messenger of Allah about that, and he ordered him to perform the 'Itikaf."