ברכות ד:ה · Berakhot 4:5

הָיָה רוֹכֵב עַל הַחֲמוֹר, יֵרֵד. וְאִם אֵינוֹ יָכוֹל לֵירֵד, יַחֲזִיר אֶת פָּנָיו, וְאִם אֵינוֹ יָכוֹל לְהַחֲזִיר אֶת פָּנָיו, יְכַוֵּן אֶת לִבּוֹ כְּנֶגֶד בֵּית קֹדֶשׁ הַקָּדָשִׁים:
While praying, one must face toward the direction of the Holy Temple. One who was riding on a donkey should dismount and pray calmly. If he is unable to dismount, he should turn his face toward the direction of the Temple. If he is unable to turn his face, it is sufficient that he focus his heart opposite the Holy of Holies.

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

הָיָה → He was [ה - י - ה]רוֹכֵב → riding [ר - כ - ב]עַל → on הַחֲמוֹר → the donkey [ח - מ - ר]יֵרֵד → he should dismount [י - ר - ד]וְאִם → and if אֵינוֹ → he is not [א - י - ן]יָכוֹל → able [י - כ - ל]לֵירֵד → to dismount [י - ר - ד]יַחֲזִיר → he should turn [ח - ז - ר]אֶת → [direct object marker] פָּנָיו → his face [פ - נ - ה]וְאִם → and if אֵינוֹ → he is not [א - י - ן]יָכוֹל → able [י - כ - ל]לְהַחֲזִיר → to turn [ח - ז - ר]אֶת → [direct object marker] פָּנָיו → his face [פ - נ - ה]יְכַוֵּן → he should direct [כ - ו - ן]אֶת → [direct object marker] לִבּוֹ → his heart [ל - ב - ב]כְּנֶגֶד → toward [נ - ג - ד]בֵּית → house of [ב - י - ת]קֹדֶשׁ → the sanctuary [ק - ד - ש]הַקָּדָשִׁים → of holies [ק - ד - ש]