Jesus repeatedly told His followers of His death; His sacrifice was intentional
They were on the way, going up to Jerusalem; and Jesus was going in front of them, and they were amazed; and those who followed were afraid. He again took the twelve, and began to tell them the things that were going to happen to him. “Behold, we are going up to Jerusalem. The Son of Man will be delivered to the chief priests and the scribes. They will condemn him to death, and will deliver him to the Gentiles. They will mock him, spit on him, scourge him, and kill him. On the third day he will rise again.”
from Good Friday topic