Abdullah bin Umar (may Allah be pleased with them both) narrates from Umar bin al-Khattab (may Allah be pleased with him) that during the time of polytheism he had vowed to perform i'tikaf and to fast. After accepting Islam he asked the Messenger of Allah (peace and blessings be upon him), and he (peace and blessings be upon him) ordered him to fulfil the vow.
(The mention of the vow of fasting together with i'tikaf comes through a gharib (unusual) chain.)
Sa'id bin Bashir alone narrated it from Ubaydullah.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصيام / 8578