It wasnarrated from Ubayy bin Ka'b that:
The Prophet (ﷺ) used tospendthe last ten days of Ramadan in I'tikaf. One year he wastraveling,so the following year he spent twenty days in I'tikaf. (JA)
English reference (JA): Vol. 1, Book 7, Hadith 1770 (JA)
Arabic reference (JA): Book 7, Hadith 1842 (JA)