The author - may Allah shower blessings on him- brought this chapter: The chapter of the desirability of expiating the oath taken by a person who afterwards breaks it for a better alternative.
If a person swears about something, it is better not to break his oath. He should remain on his pledge. However, if he swears to leave off an obligatory act, it is compulsory for him to retract it and expiate for that. For example, if he says, 'By Allah, I will not pray today in congregation.' This is forbidden for him since congregational prayer is compulsory. This may happen. His father may say to him, 'Distance yourself from me.' And he replies, 'By Allah, I will not pray today in congregation to show disobedience to you.' Some fools do say this.
So, if he swears, we would tell him that this is not tenable. It is compulsory for you to pray with the congregation, so expiate for your oath. If he swears saying: 'I will not speak to my cousin,' as a result of a misunderstanding between them, for instance, this is also forbidden because it entails breaking ties of kinship. If he abandons his brother, he will be told to speak to him and expiate for the oath. If at the time his father orders him to observe the supererogatory Prayer accompanying Dhur Prayer, for example, he says, 'By Allah, I will not pray it to show disobedience to you.' We say, the best for him is to pray and expiate for his oath. However, it is not obligatory because the Naafilah of Dhur Prayer is not obligatory.
In summary, whenever a person swears an oath but he later realizes a better alternative, he should expiate for his oath and perform that which is better. He has a choice regarding this sequence of events; he may perform the act first then expiate for it, or expiates for it first then perform it.
The author - may Allah shower blessings on him- mentioned some relevant hadeeths. One of them is the hadeeth of AbdurRahman bin Samurah (may Allah be pleased with him) that the Prophet ﷺ said: "When you take an oath and consider something else to be better than it, make expiation for your oath and choose the better alternative." This is a statement of the Prophet ﷺ. With regard to his action ﷺ, he said, "Verily, I swear by Allah, if Allah wills, I shall not
swear to do something but that if I consider something else to be better than it, then I shall make expiation for my oath and adopt the thing that is better”.
Hence, it is established in the Sunnah, through both speech and deed of his ﷺ, that whenever a person swears to do something, and he sees what is better than it, he should expiate for his oath and do that which is better. But if this is not the situation, the best thing is to honour the oath and not break it. This is based on the statement of Allah – the Mighty and Sublime:
“...And protect your oaths (i.e. do not swear much...) (5: 89).
Allah alone grants success.