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.
English reference: Vol. 1, Book 7, Hadith 1770
Arabic reference: Book 7, Hadith 1842
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.