It is narrated from Sayyiduna Ubadah bin al-Samit (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Joking and play are not permissible in three matters: divorce, marriage and freeing a slave. So whoever utters these words, they become (legally) binding and effective." I (the compiler) say: Imam Ahmad bin Mani' has also narrated it, and it has already passed in full in the chapter which mentions one who offers his daughter to someone for marriage.
It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that he said concerning (a man's) declaring (his wife) unlawful for himself: "If he intended divorce, then divorce takes place; and if he did not intend divorce, then it is an oath for which he must pay the expiation."
It is narrated from Abu Thumamah and a woman of his family that Kinanah bin Thawr had a wife who had borne him children in the Jahiliyyah. Once Kinanah said to this wife of his: "Whatever is above your waist-wrapper is forbidden to me." So that woman brought the case to Sayyiduna Abu Musa al-Ash'ari (may Allah be pleased with him), and he (may Allah be pleased with him) asked (Kinanah): "What did you intend by this statement?" He replied: "My intention was divorce." So Sayyiduna Abu Musa al-Ash'ari (may Allah be pleased with him) said: "Yes (it is indeed a divorce that has taken place)," and gave the ruling: "He has separated this woman from you (by an irrevocable divorce)."