From Sahih Muslim (Hadith 3677):
Ibn Abbas (Allah be pleased with them) reported: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
Reference: Muslim 3677