In the Book of 2 Samuel beginning in the 15th chapter it talks about how Absalom has ambitious plans of overthrowing his father David and he himself will become king.
David hears of this plan in advance and so he flees Jerusalem, but listen to where he goes.
Verse :23 The king also passed over the brook Kidron,
And verse :30 And David went up the ascent of the Mount of Olives, and wept as he went, and his head was covered and he walked barefoot.
This is exactly what Jesus did on the night that he was betrayed by a spiritual son - Judas.
John 18:1 When Jesus had spoken these words, He went forth with His disciples over the ravine of the Kidron, where there was a garden, into which He Himself entered, and His disciples.
Matthew 26:30 And after singing a hymn, they went out to the Mount of Olives.
Also notice what happens next David says this:
2 Samuel 15:25-26 If I find favor in the sight of the LORD, then He will bring me back again, and show me both it and His habitation. "But if He should say thus, 'I have no delight in you,' behold, here I am, let Him do to me as seems good to Him."
And then the prayer of Jesus:
Luke 22:42 "Father, if Thou art willing, remove this cup from Me; yet not My will, but Thine be done."
Both David and Jesus desire the will of God, whatever it may be. They both pray that their hardship may be removed, but their ultimate desire is that the will of God be done.
Meanwhile back in Jerusalem the plot to put David to death is underway, and listen to what one of Absalom’s advisers says.
2 Samuel 17:1-3 I will set out and pursue David tonight. I will come upon him while he is weary and discouraged, and throw him into a panic; and all the people who are with him will flee. I will strike down the king only, and I will bring all the people back to you as a bride comes home to her husband. You seek the life of only one man, and all the people will be at peace."
Several things point right to the life of Jesus and the plot to kill him.
Mark 14:27 And Jesus said to them, "You will all fall away; for it is written, `I will strike the shepherd, and the sheep will be scattered.'
- Hey wasn’t David a shepherd?
What Absalom’s servant said also points to what Caiaphas the high priest would say of Jesus.
John 11:49-52 But one of them, Caiaphas, who was high priest that year, said to them, "You know nothing at all; you do not understand that it is expedient for you that one man should die for the people, and that the whole nation should not perish." He did not say this of his own accord, but being high priest that year he prophesied that Jesus should die for the nation, and not for the nation only, but to gather into one the children of God who are scattered abroad.
So Absaloms's advisor is almost speaking prophetically like Caiaphas. - If we would just get rid of this guy the people would be won over and then there would be peace. It would be like bring all the people back to you as a bride comes home to her husband.
What Absalom's advisor and the high priest don't know is that this is for Jesus a fulfillment of scripture.
This gathering of the children of God who are scattered abroad is spoken of in Hosea. The people of Israel (who are described as a bride) are going after false gods, but God will bring her back
Hosea 2:16 "And in that day, says the LORD, you will call me, `My husband,'
So God will once again be reunited with his Bride Israel.
Again Absalom's advisor is saying that killing David would win the people over to Absalom the false king. Just like when they put Jesus on trial the people shouted - we have no king but Caesar. On the contrary hat actually happens though is that in putting the true king to death, Israel (the bride) is won over to the true king.
Also both the plans of Absalom and the Jewish high priest at the time of Jesus are thwarted. When David (the true king) returns from exile he brings with him forgiveness for those who previously had cursed him. So when Jesus returns from the grave he also brings with him the forgiveness of sins.