We get the analogy from the following:
AKJV And he said unto them, These
are the words which I spake unto you, while I was yet with you, that all things must be fulfilled, which were written in the law of Moses, and
in the prophets, and
in the psalms, concerning me.
Hebrews 8:5 Who serve unto the example and shadow of heavenly things, as Moses was admonished of God when he was about to make the tabernacle: for, See, saith he, that thou make all things according to the pattern shewed to thee in the mount.
in other words, there are many types and shadows of what Jesus was going and did do that are painted in the Old Testament. Even the sacrifice of the Lamb was a type and shadow of what Jesus was going and did do.