Holy Prophet Muhammad al Mustafā (salla llāhu ʿalayhi wa-alehe wa-sallam)
was taken to the heavens in Meraj and was told - Indeed Allāh (Subhānahu wa ta'alā) will test you with afflictions to see how patient you are
"....As for your daughter, she will be oppressed and deprived, they will usurp her rights. He will beat her while she is pregnant. Her sanctity will be breached and her house will be trespassed without permission and she will be humiliated and disrespected. She will find no protector, will suffer from a miscarriage because she will be beaten and she will die as a result of that beating."
The Prophet replied, “Surely we are Allāh’s and to Him we shall surely return.” (2:156). I have accepted, O Lord and submit to Your Will and I seek Taufeeq and patience from You."
[Reference: Kamiluz Ziyaraat, Chapter 108, Tradition 11, page 366]