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:3:43

O Mary, be devoutly obedient to your Lord and prostrate and bow with those who bow ˹in prayer˺."  

O Mary, be obedient to your Lord, be compliant before Him, prostrating and bowing with those who bow’, that is, pray with those who pray.
القرآن:٣:٤٣

يَا مَرْيَمُ اقْنُتِي لِرَبِّكِ وَاسْجُدِي وَارْكَعِي مَعَ الرَّاكِعِينَ  

{يا مريم اقنتي لربك} أطيعيه {واسجدي واركعي مع الراكعين} أي صلِّي مع المصلِّين.