Sahih al-Bukhari, Book 83, Hadith 5 (Bukhari 6384)
Allah's Messenger (ﷺ) also said:
"By Allah, if anyone of you insists on fulfilling an oath by which he may harm his family, he commits a greater sin in Allah's sight than that of dissolving his oath and making expiation for it."