from this amount it is close and possible then he does not disobey by breaking his oath according to the saying of the prophet may god bless him and grant him peace whoever swears an oath and then sees something better than it let him do what is better and expiate for his oath. and whoever shaves his head to commit adultery and does not pray he must break his oath and must make expiation. so this is in line with that.
من هذا القدر فانه قريب محتمل ثم لايعصى بالحنث لقوله صلى الله عليه وسلم من حلف على يمين فراى غيرها خيرا منها فليات الذي هو خير وليكفر عن يمينه ومن حلق أن يزني ولا يصلى وجب عليه الحنث ولزمته الكفارة فهذا جار مجرى ذلك