Maliks Muwatta Book 29, Hadith Number 90.
Section : Idda of Widows when Pregnant.
Yahya related to me from Malik from Nafi that Abdullan ibn Umar said, “The only place a woman whose husband has died and a woman who is absolutely divorced can spend the night is in their houses.”