"Your seal and your cord and your staff." The holy spirit flashed within her. "Your seal" — this is kingship, as it is said: "As I live, says the LORD, though Coniah son of Jehoiakim king of Judah, etc." (Jeremiah 22:24). "And your cord" — these are the Sanhedrin, who wrap themselves in their prayer-shawls. "And your staff that is in your hand" — this is the Messiah, as it is said: "The LORD will send forth the staff of your strength out of Zion, etc." (Psalms 110:2).
Tamar's Pledge Foretells Kingship, Sanhedrin, and Messiah
Midrash Aggadah, Genesis 38:18
חותמך ופתילך ומטך. נצנצה [בה] רוח הקודש: חותמך. זו מלכות, שנאמר חי אני נאם ה' [כו'] אם יהיה בניהו בן יהויקים מלך יהודה וגו' (ירמי' כב כד): ופתילך. אלו סנהדרין שמתעטפים בטליתותיהם: ומטך אשר בידך. זה משיח, שנאמר מטה עוזך ישלח ה' מציון וגו' (תהלים קי ב):