the Messenger of Allah (ﷺ) said: "There are three matters in which seriousness is serious and joking is serious: marriage, divorce and taking back (one's wife). "
Sunan Ibn Majah Book 10, Hadith 24