Abdullah bin Abbas reported,

Regarding declaring something forbidden, it is an oath that requires expiation. Ibn Abbas said, "Indeed, in the Messenger of Allah you have an excellent example" [Ahzab 33:21].

Muslim 3676

Sahih

و حدثنا زهير بن حرب حدثنا إسمعيل بن إبراهيم عن هشام يعني الدستوائي قال كتب إلي يحيى بن أبي كثير يحدث عن يعلى بن حكيم عن سعيد بن جبير

عن ابن عباس أنه كان يقول

في الحرام يمين يكفرها وقال ابن عباس {لقد كان لكم في رسول الله أسوة حسنة}

مسلم 3676صحيح
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 3676
Muslim 3676