John 18:32-34 New King James Version (NKJV)
32 that the saying of Jesus might be fulfilled which He spoke, signifying by what death He would die.
33 Then Pilate entered the [a]Praetorium again, called Jesus, and said to Him, “Are You the King of the Jews?”
34 Jesus answered him, “Are you speaking for yourself about this, or did others tell you this concerning Me?”
John 18:32-34 New International Version (NIV)
32 This took place to fulfill what Jesus had said about the kind of death he was going to die.
33 Pilate then went back inside the palace, summoned Jesus and asked him, “Are you the king of the Jews?”
34 “Is that your own idea,” Jesus asked, “or did others talk to you about me?”