Yahya related to me from Malik from Nafi that Abdullah 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".
The hadith also emphasizes the importance of family ties and relationships even after death or divorce as it encourages widows and divorced women to remain in their homes instead of staying elsewhere. This shows us how much respect Islam gives to family bonds even when they are broken due to death or divorce.