"The Prophet would perform I'tikaf during the last ten (nights) of Ramadan. One year he…

Jami` at-Tirmidhi Book 8 Hadith 122

Jami` at-Tirmidhi #803

The Book on Fasting 8:122

Anas bin Malik narrated:

"The Prophet would perform I'tikaf during the last ten (nights) of Ramadan. One year he did not perform I'tikaf, so he performed I'tikaf for twenty (nights) in the following year."

Chapter: What Has Been Related About When One Leaves From I'tikaf

Grade: Sahih (Darussalam)