סימן כב סעיף ד
אֵין נְפִילַת אַפַּיִם כִּי אִם בְּמָקוֹם שֶׁיֵּשׁ שָׁם סֵפֶר תּוֹרָה, אֲבָל בְּמָקוֹם שֶׁאֵין שָׁם סֵפֶר תּוֹרָה אַף עַל פִּי שֶׁיֵּשׁ שָׁם שְׁאָר סִפְרֵי קֹדֶשׁ, אֵין נוֹפְלִין עַל פְּנֵיהֶם, אֶלָּא אוֹמְרִים אֵת הַמִּזְמוֹר בְּלִי נְפִילַת אַפַּיִם. וּכְשֶׁמִּתְפַּלְּלִים בְּעֶזְרַת בֵּית הַכְּנֶסֶת, וּפֶתַח בֵּית הַכְּנֶסֶת פָּתוּחַ, נֶחְשָׁב כְּאִלּוּ הָיָה שָׁם סֵפֶר תּוֹרָה.
Nefilas apayim is done only in a place where a Seifer Torah is present. Where there is no Seifer Torah, even though there are other sacred books there, nefilas apayim is not done but, instead, the psalm is said without nefilas apayim. When praying in the synagogue vestibule and the door to the synagogue is open, it is considered as if the Seifer Torah is there.3And nefilas apayim is done.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)