Devarim / Deuteronomy 33:7 · Remez
וְזֹאת לִיהוּדָה וַיֹּאמַר שְׁמַע יְהוָה קוֹל יְהוּדָה וְאֶל־עַמּוֹ תְּבִיאֶנּוּ יָדָיו רָב לוֹ וְעֵזֶר מִצָּרָיו תִּהְיֶה׃
And this for Yehudah (Judah), and he said: Hear, O Eternal, the voice of Yehudah, and bring him to his people. Let his hands fight for him, and be a help to him against his foes.
Remez רֶמֶז
Kings in the first and last letters
Sometimes a name hides right inside the words of a phrase. Masters of the Torah added up the first and last letters of the words and found there the people the verse speaks of.
Ba'al HaTurim: the first letters of the words "Hear, O Eternal, the voice" give, by the numerical value of the letters, the name of King Yehoshafat (Jehoshaphat). And the last letters of the words "let his hands fight for him" give the name David.
How Kitzur Ba'al HaTurim explain it
Kitzur Ba'al HaTurim Hear, O Eternal, the voice
The first letters [of these words] equal, by the numerical value of the letters, the name Yehoshafat (יְהוֹשָׁפָט): [Moshe] prayed for Yehoshafat in the war at Ramot Gilad.
Kitzur Ba'al HaTurim Let his hands fight for him
The last letters [of these words] equal, by the numerical value of the letters, the name David (דָּוִד).
Takeaway
The first letters of the words שְׁמַע יְהוָה קוֹל are ש (300), י (10) and ק (100), together 410. The name יְהוֹשָׁפָט: י (10), ה (5), ו (6), ש (300), פ (80), ט (9), also 410.
The last letters of the words יָדָיו רָב לוֹ are ו (6), ב (2) and ו (6), together 14. The name דָּוִד: ד (4), ו (6), ד (4), also 14.
On Yehoshafat at Ramot Gilad, Rashi on this verse brings the verse "And Yehoshafat cried out, and the Eternal helped him" (Divrei HaYamim II / II Chronicles 18:31).