"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)
ابْنُ عَبَّاسٍ فِي الْحَرَامِ يَمِينٌ وَكَانَ ابْنُ عَبَّاسٍ يَقُولُ لَقَدْ كَانَ لَكُمْ فِي رَسُولِ اللَّهِ أُسْوَةٌ حَسَنَةٌ