The Messenger of Allah said: "There is no vow to commit an act of disobedience or with regard to that which the son of Adam does not possess." (Using translation from Nasāʾī 3851)
قَالَ رَسُولُ اللَّهِ ﷺ «لَا وَفَاءَ لِنَذْرٍ فِي مَعْصِيَةِ اللَّهِ وَلَا فِيمَا لَا يَمْلِكُ ابْنُ آدَمَ»