It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Prophet (peace and blessings of Allah be upon him) used to observe i'tikaf during the last ten days of Ramadan.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 6172