كتاب الأيمان
27  
The Book of Oaths
(7)
Chapter: The vow of a disbeliever, and what he should do about it if he becomes a muslim
(7)
باب نَذْرِ الْكَافِرِ وَمَا يَفْعَلُ فِيهِ إِذَا أَسْلَمَ ‏‏
Sahih Muslim 1656 d

lbn 'Umar reported:

When Allah's Apostle (ﷺ) came back from the Battle of Hunain, Umar asked Allah's Messenger (ﷺ) 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.
وَحَدَّثَنَا عَبْدُ بْنُ حُمَيْدٍ، أَخْبَرَنَا عَبْدُ الرَّزَّاقِ، أَخْبَرَنَا مَعْمَرٌ، عَنْ أَيُّوبَ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، قَالَ لَمَّا قَفَلَ النَّبِيُّ صلى الله عليه وسلم مِنْ حُنَيْنٍ سَأَلَ عُمَرُ رَسُولَ اللَّهِ صلى الله عليه وسلم عَنْ نَذْرٍ كَانَ نَذَرَهُ فِي الْجَاهِلِيَّةِ اعْتِكَافِ يَوْمٍ ‏.‏ ثُمَّ ذَكَرَ بِمَعْنَى حَدِيثِ جَرِيرِ بْنِ حَازِمٍ ‏.‏
Reference : Sahih Muslim 1656d
In-book reference : Book 27, Hadith 42
USC-MSA web (English) reference : Book 15, Hadith 4075
  (deprecated numbering scheme)