This was to fulfill the word that Jesus had spoken to indicate the kind of death He was going to die.
Berean Standard Bible (BSB)
that the word of Jesus might be fulfilled, which he spoke, signifying by what kind of death he should die.
World English Bible (WEB)
That{G2443} the saying{G3056} of Jesus{G2424} might be fulfilled{G4137}{(G5686)}, which{G3739} he spake{G2036}{(G5627)}, signifying{G4591}{(G5723)} what{G4169} death{G2288} he should{G3195}{(G5707)} die{G599}{(G5721)}.
Strong's King James
(32) In order to complete the word of Yeshua which He spoke, indicating what death He was about to die.
The F.O.G
The F.O.G Message
that the word of Jesus might be fulfilled which he said, signifying by what death he was about to die.
Young's Literal Translation