Verily, there is in the Messenger of Allah ﷺ a model pattern for you.
أَنَّهُ كَانَ يَقُولُ فِي الْحَرَامِ يَمِينٌ يُكَفِّرُهَا وَقَالَ ابْنُ عَبَّاسٍ { لَقَدْ كَانَ لَكُمْ فِي رَسُولِ اللَّهِ أُسْوَةٌ حَسَنَةٌ}
Verily, there is in the Messenger of Allah ﷺ a model pattern for you.
أَنَّهُ كَانَ يَقُولُ فِي الْحَرَامِ يَمِينٌ يُكَفِّرُهَا وَقَالَ ابْنُ عَبَّاسٍ { لَقَدْ كَانَ لَكُمْ فِي رَسُولِ اللَّهِ أُسْوَةٌ حَسَنَةٌ}
If someone says to his wife, "You are unlawful to me." he must make an expiation (for his oath). Ibn ʿAbbas added: There is for you in Messenger of Allah ﷺ, an excellent example to follow.
وَقَالَ ابْنُ عَبَّاسٍ {لَقَدْ كَانَ لَكُمْ فِي رَسُولِ اللَّهِ إِسْوَةٌ حَسَنَةٌ}
When a man declares his wife unlawful for himself that is an oath which must be atoned, and he said: There is in the Messenger of Allah ﷺ a noble pattern for you.
إِذَا حَرَّمَ الرَّجُلُ عَلَيْهِ امْرَأَتَهُ فَهْىَ يَمِينٌ يُكَفِّرُهَا وَقَالَ { لَقَدْ كَانَ لَكُمْ فِي رَسُولِ اللَّهِ أُسْوَةٌ حَسَنَةٌ}
"For the one who makes unlawful is the swearing." (Sahih)And Ibn 'Abbas used to say: "You had the best example in the Messenger of Allah." (33:21)
ابْنُ عَبَّاسٍ فِي الْحَرَامِ يَمِينٌ وَكَانَ ابْنُ عَبَّاسٍ يَقُولُ لَقَدْ كَانَ لَكُمْ فِي رَسُولِ اللَّهِ أُسْوَةٌ حَسَنَةٌ
[Machine] Ibn Abbas, indeed there is for you in the Messenger of Allah a good example, and then he recited, "And We ransomed him with a great sacrifice."
ابْنُ عَبَّاسٍ لَقَدْ كَانَ لَكُمْ فِي رَسُولِ اللهِ أُسْوَةٌ حَسَنَةٌ ثُمَّ تَلَا {وفديناهُ بِذِبْحٍ عَظِيمٍ}