ברכות ט:ד · Berakhot 9:4

הַנִּכְנָס לִכְרַךְ מִתְפַּלֵּל שְׁתַּיִם, אַחַת בִּכְנִיסָתוֹ וְאַחַת בִּיצִיאָתוֹ. בֶּן עַזַּאי אוֹמֵר, אַרְבַּע, שְׁתַּיִם בִּכְנִיסָתוֹ וּשְׁתַּיִם בִּיצִיאָתוֹ, וְנוֹתֵן הוֹדָאָה לְשֶׁעָבַר, וְצוֹעֵק לֶעָתִיד לָבֹא:
The Sages also said: One who enters a large city, the Gemara explains below that this is in a case where entering the city is dangerous, recites two prayers: One upon his entrance, that he may enter in peace, and one upon his exit, that he may leave in peace. Ben Azzai says: He recites four prayers, two upon his entrance and two upon his exit. In addition to praying that he may enter and depart in peace, he gives thanks for the past and cries out in prayer for the future.

Word-by-word Breakdown (מילים ושרשים)

הַנִּכְנָס → One who enters [נ - כ - נ]לִכְרַךְ → a large city [כ - ר - ך]מִתְפַּלֵּל → recites [פ - ל - ל]שְׁתַּיִם → two [ש - ת - י]אַחַת → one [א - ח - ד]בִּכְנִיסָתוֹ → upon his entrance [כ - נ - ס]וְאַחַת → and one [א - ח - ד]בִּיצִיאָתוֹ → upon his exit [י - צ - א]בֶּן → Ben [ב - נ - ה]עַזַּאי → Azzai אוֹמֵר → says [א - מ - ר]אַרְבַּע → four [ר - ב - ע]שְׁתַּיִם → two [ש - ת - י]בִּכְנִיסָתוֹ → upon his entrance [כ - נ - ס]וּשְׁתַּיִם → and two [ש - ת - י]בִּיצִיאָתוֹ → upon his exit [י - צ - א]וְנוֹתֵן → and gives [נ - ת - ן]הוֹדָאָה → thanks [י - ד - ה]לְשֶׁעָבַר → for the past [ע - ב - ר]וְצוֹעֵק → and cries out [צ - ע - ק]לֶעָתִיד → for the future [ע - ת - ד]לָבֹא → to come [ב - ו - א]