It is narrated from Hazrat Abu Hurairah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) used to observe i'tikaf during the last ten days of Ramadan every year, and in the year in which he passed away, he observed i'tikaf for twenty days.