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