Qasim bin Muhammad (may Allah have mercy on him) narrated that when Aisha (may Allah be pleased with her) heard mention of a man who swore an oath that he would not go to his wife, and then left her for five months, she did not consider this correct unless he was stopped and a decision was made. She used to say: "Allah the Exalted has said that either keep (her) in a good manner or release (her) in a good way."
Hadith Referenceمسند الإمام الشافعي / كتاب عشرة النساء والإيلاء والخلع / 1229
Hadith Takhrijاسناده صحیح اخرجه البيهقي : 387/7 - وفى المعرفة السنن والآثار له (4517)۔ وعبدالرزاق (11658)۔ و ابن ابي شيبة (18563)۔