The Messenger of Allah ﷺ said, "There is no vow and no oath regarding what the son of Adam does not own, nor in disobedience to Allah , nor in severing ties of kinship. Whoever takes an oath and then sees something better than it, let him abandon it and do what is better, for leaving it is its expiation."
حدثنا عبد الله بن بكر حدثنا عبيد الله بن الأخنس أبو مالك الأزدي
قال رسول الله ﷺ لا نذر ولا يمين فيما لا يملك ابن آدم ولا في معصية الله عز وجل ولا قطيعة رحم فمن حلف على يمين فرأى غيرها خيرا منها فليدعها وليأت الذي هو خير فإن تركها كفارتها