The death of Jesus did not take Jesus by surprise. On several occasions He told His disciples that they were going up to Jerusalem where He was going to be put to death (Mark 8:31; 9:31; 10:32-33). Jesus repeated Himself because His disciples didn’t quite understand (or believe) what Jesus was telling them.
On one of these occasions, Jesus said, “See, we are going up to Jerusalem, and the Son of Man will be delivered over to the chief priests and the scribes, and they will condemn him to death and deliver him over to the Gentiles. And they will mock him and spit on him, and flog him and kill him. And after three days he will rise.”
Did you notice how accurately Jesus predicted His future? Not only did He know that He would be killed. He knew the role the Gentiles would play in the process. He knew how He would be humiliated before His death. He even knew that they would spit on Him.
Jesus was not surprised at His death. This is why He came. “For the Son of Man did not come to be served but to serve and to give His life a ransom for many” (Mark 10:45).