Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
muslim:1656dʿAbd b. Ḥumayd > ʿAbd al-Razzāq > Maʿmar > Ayyūb > Nāfiʿ > Ibn ʿUmar

When Allah's Apostle ﷺ came back from the Battle of Hunain, Umar asked Messenger of Allah ﷺ about the vow he had taken during the days of Ignorance that he would observe I'tikaf for a day. The rest of the hadith is the same.  

مسلم:١٦٥٦dوَحَدَّثَنَا عَبْدُ بْنُ حُمَيْدٍ أَخْبَرَنَا عَبْدُ الرَّزَّاقِ أَخْبَرَنَا مَعْمَرٌ عَنْ أَيُّوبَ عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ قَالَ

لَمَّا قَفَلَ النَّبِيُّ ﷺ مِنْ حُنَيْنٍ سَأَلَ عُمَرُ رَسُولَ اللَّهِ ﷺ عَنْ نَذْرٍ كَانَ نَذَرَهُ فِي الْجَاهِلِيَّةِ اعْتِكَافِ يَوْمٍ ثُمَّ ذَكَرَ بِمَعْنَى حَدِيثِ جَرِيرِ بْنِ حَازِمٍ  


See similar narrations below:

Collected by Nasāʾī's Kubrá
nasai-kubra:3338Isḥāq b. Ibrāhīm > ʿAbd al-Razzāq > Maʿmar > Ayyūb > Nāfiʿ > Ibn ʿUmar

[Machine] When the Prophet ﷺ finished from Hunayn, Umar asked the Messenger of Allah ﷺ about a vow that he had made during the days of ignorance to observe seclusion for a day, so he commanded him to fulfill it.  

الكبرى للنسائي:٣٣٣٨أَخْبَرَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ قَالَ حَدَّثَنَا عَبْدُ الرَّزَّاقِ قَالَ أَخْبَرَنَا مَعْمَرٌ عَنْ أَيُّوبَ عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ قَالَ

لَمَّا قَفَلَ النَّبِيُّ ﷺ مِنْ حُنَيْنٍ «سَأَلَ عُمَرُ رَسُولَ اللهِ ﷺ عَنْ نَذْرٍ كَانَ نَذَرَهُ فِي الْجَاهِلِيَّةِ اعْتِكَافَ يَوْمٍ فَأَمَرَهُ بِهِ»