The Prophet ﷺ said: If anyone swears an oath and makes an exception, he may fulfil it if he wishes and break it if he wishes without any accountability for breaking.
قَالَ رَسُولُ اللَّهِ ﷺ مَنْ حَلَفَ فَاسْتَثْنَى فَإِنْ شَاءَ رَجَعَ وَإِنْ شَاءَ تَرَكَ غَيْرَ حِنْثٍ