Al-Sha'bi (may Allah have mercy on him) said: The people of Madinah differed with us on the question of housing and maintenance for the divorced woman, and they said to me: "The hadith of Fatimah bint Qays (may Allah be pleased with her) is the judge between us and you." So I went to her and asked her, and she said: My husband divorced me, and his brother said to me: "You are entitled to neither housing nor maintenance." So I came to the Messenger of Allah (peace and blessings be upon him), and the Messenger of Allah (peace and blessings be upon him) said to me: "O daughter of Qays! Housing and maintenance are due only as long as your husband still has the right to take you back."
Hadith Referenceالمعجم الكبير للطبراني / مسند النساء / 21304