Bereshit / Genesis 49:10 · Remez
לֹא־יָסוּר שֵׁבֶט מִיהוּדָה וּמְחֹקֵק מִבֵּין רַגְלָיו עַד כִּי־יָבֹא שילה [שִׁילוֹ] וְלוֹ יִקְּהַת עַמִּים׃
The sceptre shall not depart from Yehudah, nor the lawgiver from between his feet, until Shiloh comes, and to him shall be the obedience of the peoples.
Remez רֶמֶז
Shiloh is Moshe and Mashiach
Kitzur Ba'al HaTurim and Midrash Lekach Tov count the letters of "lawgiver" and "Shiloh". Out come the number of the body's limbs, the name of Moshe (Moses), the word "Mashiach", and even the number of days until redemption.
Kitzur Ba'al HaTurim: "lawgiver" (מְחֹקֵק) is 248, like the limbs of the body: Torah is "ordered in all and secure". "Shiloh comes" (יָבֹא שִׁילֹה) is 358, like "Mashiach" (מָשִׁיחַ). "Shiloh" is 345, like "Moshe" (מֹשֶׁה): Moshe "came at the head of the people" when Yehudah became His sanctuary. Midrash Lekach Tov: in "Shiloh" (שִׁילֹה) Yaakov (Jacob) hinted at the one thousand three hundred and thirty-five days of the book of Daniel, and Moshe in the words "I will surely hide My face". When they begin we do not know: "suddenly he will come".
How Kitzur Ba'al HaTurim and Midrash Lekach Tov explain it
Kitzur Ba'al HaTurim
"Lawgiver" (מְחֹקֵק) amounts to 248, for there are 248 limbs in a person, after the verse "ordered in all and secure". "Shiloh comes" in gematria is "Mashiach".
"Shiloh" in gematria is "Moshe", of whom it is written: "and he came at the head of the people" (Devarim / Deuteronomy 33:21). For then Yehudah became His sanctuary, as it is written: "the princes of Yehudah, their council" (Tehillim / Psalms 68:28).
Midrash Lekach Tov
Another explanation: "Shiloh". This is what the verse says: "Happy is he who waits and reaches one thousand three hundred and thirty-five days" (Daniel 12:12). Yaakov our father hinted at it in his blessing: "alef" (א, a thousand) is the general, and the particular is "shin-lamed-hei" (שׁ״לה, 335). And so Moshe our teacher hinted: "and I will surely hide My face on that day" (Devarim / Deuteronomy 31:18): one thousand three hundred and thirty-five. For the alef of אַסְתִּיר is auxiliary, and the hiding is the main thing. And Daniel came and explained it: "Happy is he who waits and reaches one thousand three hundred and thirty-five days", and these are "a time, times and half a time", "a season, seasons and a half", numbers that will be three and a half years, in which there will be days of trouble, and from it he will be saved. But their beginning we do not know, when. And of this it says: "suddenly He will come to His Temple" (Malachi 3:1). This is what the verse says: "until Shiloh comes": suddenly he will come. And one may say that "יִקְּהַת" means "he will gather" (יַקְהִיל), like "a company of prophets" (Shmuel I / 1 Samuel 19:20). And so the verse says: "for then I will turn to the peoples a clear language, that they may all call on the name of the Eternal and serve Him with one accord" (Tzefanyah / Zephaniah 3:9).
Takeaway
Gematria: מְחֹקֵק = 40 + 8 + 100 + 100 = 248. The number of 248 limbs of the body is given in the mishnah (Oholot 1:8).
יָבֹא = 10 + 2 + 1 = 13, שִׁילֹה = 300 + 10 + 30 + 5 = 345, together 358. מָשִׁיחַ = 40 + 300 + 10 + 8 = 358. And מֹשֶׁה = 40 + 300 + 5 = 345, like "Shiloh".
הַסְתֵּר = 5 + 60 + 400 + 200 = 665. אַסְתִּיר without the alef (סְתִּיר) = 60 + 400 + 10 + 200 = 670. Together 1335, the number of days in Daniel 12:12.