Jesus took his disciples aside to speak with them privately while they were on the road going up to Jerusalem. He let them know what was about to happen to him.
“Pay attention! We are going up to Jerusalem. Everything that the prophets wrote about the Son of Man is about to be fulfilled:
He will be handed over to the religious authorities and they will sentence him to death. Then he will be handed over to the Gentiles and he will be mocked, insulted, and spat on. Then they will flog him and crucify him. After all that he will rise three days later.”
MT 20:17-19, MK 10:32-34, LK 18:31-34