John 12:16

His disciples did not understand these things at first; but when Jesus was glorified, then they remembered that these things were written about Him and that they had done these things to Him.

Surrounding context

12:15 "Fear not, daughter of Zion; Behold, your King is coming, Sitting on a donkey's colt."

12:16 His disciples did not understand these things at first; but when Jesus was glorified, then they remembered that these things were written about Him and that they had done these things to Him.

12:17 Therefore the people, who were with Him when He called Lazarus out of his tomb and raised him from the dead, bore witness.

Translation and sources