Vowing to pay some money for the sick and then changing his mind and using the money to dig a tomb

Q 3: I made a vow to spend a certain sum of money to help patients, but I changed my mind and paid the same amount for digging a grave. Is my vow regarded as being fulfilled, or do I still have to do something else? (Part No. 23; Page No. 375

A: It is Wajib (obligatory) on you to hasten to spend the sum in question on helping patients as you initially intended when making your vow. In other words, it is impermissible to pay this sum of money for any purpose other than what you initially intended.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.