Sunan an-Nasa'i 3845
It was narrated from Muhammad bin Az-Zubair, from his father, from a man from the inhabitants of Al-Basrah, who said:
"I accompanied 'Imran bin Husain, who said: 'I heard the Messenger of Allah say: Vows are of two types: A vow that is made to do an act of obedience to Allah; that is for Allah and must be fulfilled, and a vow that is made to do an act of disobedience to Allah; that is for Shaitan and should not be fulfilled, and its expiation is the expiation for an oath.'"
أَخْبَرَنِي مُحَمَّدُ بْنُ وَهْبٍ، قَالَ حَدَّثَنَا مُحَمَّدُ بْنُ سَلَمَةَ، قَالَ حَدَّثَنِي ابْنُ إِسْحَاقَ، عَنْ مُحَمَّدِ بْنِ الزُّبَيْرِ، عَنْ أَبِيهِ، عَنْ رَجُلٍ، مِنْ أَهْلِ الْبَصْرَةِ قَالَ صَحِبْتُ عِمْرَانَ بْنَ حُصَيْنٍ قَالَ سَمِعْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم يَقُولُ ‏
"‏ النَّذْرُ نَذْرَانِ فَمَا كَانَ مِنْ نَذْرٍ فِي طَاعَةِ اللَّهِ فَذَلِكَ لِلَّهِ وَفِيهِ الْوَفَاءُ وَمَا كَانَ مِنْ نَذْرٍ فِي مَعْصِيَةِ اللَّهِ فَذَلِكَ لِلشَّيْطَانِ وَلاَ وَفَاءَ فِيهِ وَيُكَفِّرُهُ مَا يُكَفِّرُ الْيَمِينَ ‏"‏ ‏.‏