The Messenger of Allah ﷺ said, "There are three matters in which seriousness is serious and jest is also serious: marriage, divorce, and the revocation of divorce."
حدثنا هشام بن عمار حدثنا حاتم بن إسمعيل حدثنا عبد الرحمن بن حبيب بن أردك حدثنا عطاء بن أبي رباح عن يوسف بن ماهك
قال رسول الله ﷺ ثلاث جدهن جد وهزلهن جد النكاح والطلاق والرجعة
[Its isnad is hasan] Abu Dawud narrated it in the Book of Divorce, Chapter: On Divorce Made in Jest, no. 2194, from the hadith of Abdul-Rahman, transmitted through him. Tirmidhi graded it hasan, no. 1184, and Hakim and others graded it sahih.