Jami` at-Tirmidhi, Book 8, Hadith 109 (Tirmidhi 790)

Abu Hurairah and Aishah narrated:

"The Prophet would perform I'tikaf during the last ten (days) of Ramadan until Allah took him."