Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) narrates: The Prophet Muhammad (peace and blessings be upon him) used to observe i'tikaf during the last ten days of Ramadan. Once, he traveled and did not observe i'tikaf. When the next year came, he observed i'tikaf for twenty days.