Allah, the Mighty and Majestic, says: "And it is not lawful for you to take back anything of what you have given them, unless both fear that they will not be able to keep within the limits of Allah. But if you fear that they will not keep within the limits of Allah, then there is no sin on either of them concerning that (wealth) with which the woman ransoms herself (to free herself)." [Surah al-Baqarah: 229]
Sayyidah Habibah bint Sahl (may Allah be pleased with her) narrates that she was married to Thabit bin Qays bin Shammas (may Allah be pleased with him). The Messenger of Allah (peace and blessings be upon him) went out for the dawn (Fajr) prayer and found Habibah bint Sahl at his door in the darkness. The Messenger of Allah (peace and blessings be upon him) asked: "Who is this?" She said: "Habibah bint Sahl." He asked: "What is the matter with you?" She said: "I and my husband Thabit cannot stay together." When Thabit bin Qays (may Allah be pleased with him) came, the Messenger of Allah (peace and blessings be upon him) said to him: "This is Habibah bint Sahl; she has mentioned what Allah willed her to mention." Habibah said: "O Messenger of Allah (peace and blessings be upon him), all the wealth he gave me is with me." So he (peace and blessings be upon him) said: "Thabit, take the wealth from her." So he took it, and she went to stay with her family.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب القسم والنشوز / 14836