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 also during the middle ten days, and in the year in which he (peace and blessings be upon him) passed away, he observed i'tikaf for twenty days.