Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:19:16

And mention, ˹O Muhammad˺, in the Book ˹the story of˺ Mary, when she withdrew from her family to a place toward the east.  

And mention in the Book, ˹in˺ the Qur’ān, Mary, that is, ˹mention˺ her tale, when she withdrew from her family to an easterly place, that is, ˹when˺ she secluded herself in a place on the east side of ˹her˺ home.
القرآن:١٩:١٦

وَاذْكُرْ فِي الْكِتَابِ مَرْيَمَ إِذِ انْتَبَذَتْ مِنْ أَهْلِهَا مَكَانًا شَرْقِيًّا  

{واذكر في الكتاب} القرآن {مريم} أي: خبرها {إذ} حين {انتبذت من أهلها مكانا شرقيا} أي: اعتزلت في مكان نحو الشرق من الدار.