וְהִשְׁתַּחֲו֣וּ עַם־הָאָ֗רֶץ פֶּ֚תַח הַשַּׁ֣עַר הַה֔וּא בַּשַּׁבָּת֖וֹת וּבֶחֳדָשִׁ֑ים לִפְנֵ֖י יְהוָֽה׃
און דאָס פֿאָלק פֿון לאַנד זאָל זיך בוקן פֿאַר גאָט אין אײַנגאַנג פֿון יענעם טױער, אין די שבתים, און אום ראש-חודש.
Rashi
And the people of the land shall prostrate themselves all day, and whoever comes, too, and in the evening they shall close it.
Tze'enah Ure'enah
“They will bow” [46:3]. The people should bow on the Sabbath and New Moon before God. From here we learn that it is a great mitzvah to bow when one comes into the synagogue. This is compared to bowing in the Temple. Each synagogue is compared to the Temple.