From Sahih Bukhari (Hadith 4911):
Narrated Ibn `Abbas: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 Allah's Messenger (ﷺ), an excellent example to follow
Reference: Bukhari 4911