Sahih Bukhari | Volume 5 | Hadith Number 609
Narrated by Ibn 'Umar
When we returned from (the battle of) Hunain, 'Umar asked the Prophet about a vow which he had made during the Pre-Islamic period of Ignorance that he would perform Itikaf. The Prophet ordered him to fulfil his vow.