Sayyiduna Abu Hurairah (may Allah be pleased with him) said: The Messenger of Allah (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.