יְהוָ֤ה ׀ נְחֵ֬נִי בְצִדְקָתֶ֗ךָ לְמַ֥עַן שׁוֹרְרָ֑י הושר [הַיְשַׁ֖ר] לְפָנַ֣י דַּרְכֶּֽךָ׃
Ya Yang Mahakekal, tuntunlah aku dalam keadilan-Mu karena orang-orang yang mengintai aku; ratakanlah jalan-Mu di hadapanku.
Kitzur Shulchan Arukh
Upon leaving the synagogue you recite the verse Hashem nacheini (Hashem, lead me).4Psalms 5:9. You should bow towards the Aron Hakodesh like a pupil taking leave from his master. When leaving the synagogue, you should not leave with your back toward the Aron Hakodesh, but you should walk out sideways, and do the same when you descend from the reading lectern.
Shulchan Arukh, Orach Chayim
It is forbidden for one to leave the synagogue before the Kedusha D'Sidra [a.k.a. "Uva L'tzion"]. Gloss: After the conclusion of the prayer, we say Aleinu L'shabbei-ach while standing (Kol Bo), and one should be careful to say it with concentration; and when he reaches [the words] "Lo Yoshia", he should pause a moment before saying "Va-anachnu Kor'im etc." (Tur). And they say Kaddish Yatom after Aleinu; and even if there is no orphan in the synagogue, it should be said by a person who does not have a [living] father and mother; And even one who has a [living] father and mother may say it as long as his father and mother are not particular about it [Agur, Tashbe'tz, and Teshuvat Maharil - siman 64]. And one should say "Pitum haKetoret" in the evening and morning after the prayers; and they say "Ein Kelokeinu etc" first. And then they say "Ha'shir She'halevi'im Hayu Om'rim Ba'mikdash", but only during Shacharit (Tur). There is an opinion that one should be careful to recite "Pitum Ketoret" from a text and not by heart; since the reading is in place of the burning [of the incense], and we are concerned that he might omit [Beit Yosef in the name of Mahari"a and Orchot Chaim] one of the spice ingredients [in his reading], and we say that there is a death penalty for someone who leaves out one of the spices [from the actual Ketoret]. Therefore, the custom is to not recite it during the week when people are rushing to get to work, and we are concerned that one might omit [one of the ingredients]. And when one leaves the synagogue, he should say "Hashem, nechani etc." [Kol Bo], and he bows and then leaves. [Mahari"l]