Abdullah bin Abbas reported,

If a man declares his wife forbidden to himself, it is an oath for which he must offer expiation. He said, "Indeed, you have in the Messenger of Allah an excellent example to follow" [Ahzab 33:21].

Muslim 3677

Sahih

حدثنا يحيى بن بشر الحريري حدثنا معاوية يعني ابن سلام عن يحيى بن أبي كثير أن يعلى بن حكيم أخبره أن سعيد بن جبير أخبره أنه سمع

ابن عباس قال

إذا حرم الرجل عليه امرأته فهي يمين يكفرها وقال {لقد كان لكم في رسول الله أسوة حسنة}

مسلم 3677صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Divorce
Chapter
Obligation of expiation for one who declared his wife forbidden without intending divorce
Numbering
Darussalam 3677
Muslim 3677