"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.'" (Using translation from Nasāʾī 3845)
قَالَ النَّبِيُّ ﷺ النَّذْرُ نَذْرَانِ فَمَا كَانَ مِنْ نَذْرٍ فِي طَاعَةِ اللهِ فَذَلِكَ لَكَ وَفِيهِ الْوَفَاءُ وَمَا كَانَ مِنْ نَذْرٍ فِي مَعْصِيَةِ اللهِ فَذَلِكَ لِلشَّيْطَانِ وَلَا وَفَاءَ فِيهِ فَيُكَفِّرُهُ مَا يُكَفِّرُ الْيَمِينَ وَقِيلَ عَنْ مُحَمَّدِ بْنِ الزُّبَيْرِ عَنِ الْحَسَنِ عَنْ عِمْرَانَ