Dan shall judge his people, as one of the tribes of Israel. Let Dan become a serpent in the way, a basilisk in the path, biting the hoofs of the horse, and his rider shall fall backward. I will await your salvation, O Lord. Samson, a judge of Israel, was of the tribe of Dan. This, then, is what he says: now, seeing in the spirit Samson your Nazirite growing his hair and triumphing over his slain enemies, in that, in the likeness of a serpent and a basilisk besieging the ways, he allows no one to pass through the land of Israel, but even if some rash man, trusting in his own strength as in the ...swiftness of a horse, should wish to ravage it in the manner of a robber, he will not be able to escape. And he says the whole of it through the metaphor of the serpent and the rider. Seeing, then, your Nazirite so strong, and that he too died on account of a harlot and in dying slew our enemies, I thought, O God, that he himself was Christ your Son; but because he died and did not rise again, and Israel was again led captive, another Savior of the world and of my race must be awaited by me, that he may come for whom it is laid up, and he shall be the expectation of the nations.
Source: Hebrew Questions on Genesis