Bulugh al-Maram 1091
وَعَنِ ابْنِ عَبَّاسٍ - رَضِيَ اللَّهُ عَنْهُمَا - قَالَ: إِذَا حَرَّمَ امْرَأَتَهُ لَيْسَ بِشَيْءٍ. وَقَالَ: {لَقَدْ كَانَ لَكُمْ فِي رَسُولِ اللَّهِ أُسْوَةٌ حَسَنَةٌ} الأحزاب: ٢١ رَوَاهُ الْبُخَارِيُّ. وَلِمُسْلِمٍ: إِذَا حَرَّمَ الرَّجُلُ عَلَيْهِ امْرَأَتَهُ, فَهِيَ يَمِينٌ يُكَفِّرُهَا.
From Ibn ʿAbbas, may Allah be pleased with them both, who said: When [a man] declares his wife unlawful [to him], it is nothing. And he said: "There has certainly been for you in the Messenger of Allah an excellent example" (al-Ahzab 33:21). Al-Bukhari reported it. Muslim has: When a man declares his wife unlawful to himself, it is an oath for which he makes expiation.