Sunan An-Nasa'i - سنن النسائي
35. The Book of Oaths and Vows - كتاب الأيمان والنذور
36) Chapter: If A Person Makes A Vow Then Becomes Muslim Before Fulfilling It
It was narrated from Ibn 'Umar, that 'Umar had vowed to spend a night in 'Itikaf during the Jahiliyyah. He asked the Messenger of Allah about that, and he ordered him to perform the 'Itikaf.
36) باب إِذَا نَذَرَ ثُمَّ أَسْلَمَ قَبْلَ أَنْ يَفِيَ
أَخْبَرَنَا إِسْحَاقُ بْنُ مُوسَى، قَالَ حَدَّثَنَا سُفْيَانُ، عَنْ أَيُّوبَ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، عَنْ عُمَرَ، أَنَّهُ كَانَ عَلَيْهِ لَيْلَةٌ نَذَرَ فِي الْجَاهِلِيَّةِ يَعْتَكِفُهَا فَسَأَلَ رَسُولَ اللَّهِ صلى الله عليه وسلم فَأَمَرَهُ أَنْ يَعْتَكِفَ .