Passage
Having said these things, Jesus was troubled in spirit, and testified and said, Verily, verily, I say to you, that one of you shall deliver me up.
Having said these things, Jesus was troubled in spirit, and testified and said, Verily, verily, I say to you, that one of you shall deliver me up.
John 13:19 I tell you [it] now before it happens, that when it happens, ye may believe that I am [he].
John 13:20 Verily, verily, I say to you, He who receives whomsoever I shall send receives me; and he that receives me receives him who has sent me.
John 13:21 Having said these things, Jesus was troubled in spirit, and testified and said, Verily, verily, I say to you, that one of you shall deliver me up.
John 13:22 The disciples therefore looked one on another, doubting of whom he spoke.
John 13:23 Now there was at table one of his disciples in the bosom of Jesus, whom Jesus loved.
The verse centers on "Spirit", "having", "said", "things", "jesus", "troubled", and "testified". It is saying that the verse draws attention to "Spirit" and "having", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 20's "Verily verily I say to you He..." into verse 22's "The disciples therefore looked one on another...", so "Spirit" and "having" belong inside that flow. In John context, the local focus is the identity of Jesus, new birth, eternal life, and belief and unbelief.
A plain takeaway is to answer the verse's own emphasis on "Spirit" and "having" with trust shaped by these words, not by a vague optimism outside the passage.