Sunan Ibn Majah
1770
Sahih+3

It was narrated from Ubayy bin Ka’b that:The Prophet (ﷺ) used to spend the last ten days of Ramadan in I’tikaf. One year he was traveling, so the following year he spent twenty days in I’tikaf

SahihAl-Albani
SahihMuhammad Fouad Abd al-Baqi