Sayyiduna Anas bin Malik (may Allah be pleased with him) narrates that the Prophet Muhammad (peace and blessings be upon him) used to observe i'tikaf during the last ten days of Ramadan. One year he was unable to perform i'tikaf, so when the next year came, he (peace and blessings be upon him) observed i'tikaf for twenty days.