Retiring to a Mosque for Remembrance of Allah (I'tikaf)

Bukhari :: Book 3 :: Volume 33 :: Hadith 243

Narrated 'Aisha:

(the wife of the Prophet) The Prophet used to practice Itikaf in the last ten days of Ramadan till he died and then his wives used to practice Itikaf after him.