Yes, Matthew 20:18–19 shows that Jesus knew in advance that he would be mocked by Roman soldiers (Matthew 27:27–31), scourged, and crucified, under the Roman governor Pilate (Matthew 27:26), yet he also knew that his death would bring about victory.
Thus not only had the Sanhedrin planned for these things to occur, but Jesus knew that they would most certainly occur. He would be spared nothing. Nothing was hidden from him (John 13:1).
Yes, Matthew 20:18–19 reveals that Jesus knew all these things in advance. He knew that He would be mocked—by Roman soldiers (Matthew 27:27–31)—scourged, and crucified, for which the Roman governor Pilate would bear responsibility (Matthew 27:26). Yet He also knew that through His death, He would bring about victory.1
In other words, it was not only the Sanhedrin that planned for these things to take place, but Jesus reveals that they would indeed most certainly take place. He would be spared nothing. The Saviour is able to disclose all of this because nothing is hidden from hHim (John 13:1).2
18 Voici, nous montons à Jérusalem, et le Fils de l'homme sera livré aux principaux sacrificateurs et aux scribes. Ils le condamneront à mort,