https://abukhadeejah.com/a-person-who-swears-by-allah-that-he-will-do-something-and-breaks-his-oath/
A person who swears by Allah that he'll do something and then sees that something else is better for him: Expiation for a broken oath ―Shaikh Ibn Bāz