Paying a debt and fulfilling a vow
If the debt predates the vow, it should be paid first, and if the vow predates the debt, then it should be fulfilled before paying the debt. This is because the matter concerns something that is obligatory for a person to discharge, and when something is obligatory upon a person to discharge, he cannot discharge another obligation until he has finished discharging the first one. This applies when he has not made a vow concerning a specific, particular thing.
For example, if a man says: I have vowed to Allah that I will give this dirham, or this specific food, as charity, in this case he should give precedence to the vow, because it has become specified, and this specified and fixed thing is being fulfilled through the vow.