After Jesus had spoken these words, he looked up to heaven and said, “Father, the hour has come; glorify your Son so that the Son may glorify you, since you have given him authority over all people, to give eternal life to all whom you have given him. And this is eternal life, that they may know you, the only true God, and Jesus Christ whom you have sent. I glorified you on earth by finishing the work that you gave me to do. So now, Father, glorify me in your own presence with the glory that I had in your presence before the world existed.” I have made your name known to those whom you gave me from the world. They were yours, and you gave them to me, and they have kept your word. Now they know that everything you have given me is from you; for the words that you gave to me I have given to them, and they have received them and know in truth that I came from you; and they have believed that you sent me. I am asking on their behalf; I am not asking on behalf of the world, but on behalf of those whom you gave me, because they are yours. All mine are yours, and yours are mine; and I have been glorified in them. And now I am no longer in the world, but they are in the world, and I am coming to you. Holy Father, protect them in your name that you have given me, so that they may be one, as we are one. While I was with them, I protected them in your name that you have given me. I guarded them, and not one of them was lost except the one destined to be lost, so that the scripture might be fulfilled. But now I am coming to you, and I speak these things in the world so that they may have my joy made complete in themselves. I have given them your word, and the world has hated them because they do not belong to the world, just as I do not belong to the world. I am not asking you to take them out of the world, but I ask you to protect them from the evil one. They do not belong to the world, just as I do not belong to the world. Sanctify them in the truth; your word is truth. As you have sent me into the world, so I have sent them into the world. And for their sakes I sanctify myself, so that they also may be sanctified in truth. (John 17:1-19, NRSV)
Jesus prayed for the 12 in the garden the night before He went to the cross.
As He was thinking about the agony He was about to undergo He thanked God for the blessings of the disciples. And He asked God to protect them since He would not be there for them.
The hours before His death He was more concerned for His disciples than what was coming for Him.

So they took Jesus; and carrying the cross by himself, he went out to what is called The Place of the Skull, which in Hebrew is called Golgotha. There they crucified him, and with him two others, one on either side, with Jesus between them. Pilate also had an inscription written and put on the cross. It read, “Jesus of Nazareth, the King of the Jews.” Many of the Jews read this inscription, because the place where Jesus was crucified was near the city; and it was written in Hebrew, in Latin, and in Greek. Then the chief priests of the Jews said to Pilate, “Do not write, ‘The King of the Jews,’ but, ‘This man said, I am King of the Jews.’” Pilate answered, “What I have written I have written.” (John 19:16b-22, NRSV)
“I have said these things to you in figures of speech. The hour is coming when I will no longer speak to you in figures, but will tell you plainly of the Father. On that day you will ask in my name. I do not say to you that I will ask the Father on your behalf; for the Father himself loves you, because you have loved me and have believed that I came from God. I came from the Father and have come into the world; again, I am leaving the world and am going to the Father.” His disciples said, “Yes, now you are speaking plainly, not in any figure of speech! Now we know that you know all things, and do not need to have anyone question you; by this we believe that you came from God.” Jesus answered them, “Do you now believe? The hour is coming, indeed it has come, when you will be scattered, each one to his home, and you will leave me alone. Yet I am not alone because the Father is with me. I have said this to you, so that in me you may have peace. In the world you face persecution. But take courage; I have conquered the world!” (John 16:25-33, NRSV)
”A little while, and you will no longer see me, and again a little while, and you will see me.” Then some of his disciples said to one another, “What does he mean by saying to us, ‘A little while, and you will no longer see me, and again a little while, and you will see me’; and ‘Because I am going to the Father’?” They said, “What does he mean by this ‘a little while’? We do not know what he is talking about.” Jesus knew that they wanted to ask him, so he said to them, “Are you discussing among yourselves what I meant when I said, ‘A little while, and you will no longer see me, and again a little while, and you will see me’? Very truly, I tell you, you will weep and mourn, but the world will rejoice; you will have pain, but your pain will turn into joy. When a woman is in labor, she has pain, because her hour has come. But when her child is born, she no longer remembers the anguish because of the joy of having brought a human being into the world. So you have pain now; but I will see you again, and your hearts will rejoice, and no one will take your joy from you. On that day you will ask nothing of me. Very truly, I tell you, if you ask anything of the Father in my name, he will give it to you. Until now you have not asked for anything in my name. Ask and you will receive, so that your joy may be complete. (John 16:16-24, NRSV)
“I did not say these things to you from the beginning, because I was with you. But now I am going to him who sent me; yet none of you asks me, ‘Where are you going?’ But because I have said these things to you, sorrow has filled your hearts. Nevertheless I tell you the truth: it is to your advantage that I go away, for if I do not go away, the Advocate will not come to you; but if I go, I will send him to you. And when he comes, he will prove the world wrong about sin and righteousness and judgment: about sin, because they do not believe in me; about righteousness, because I am going to the Father and you will see me no longer; about judgment, because the ruler of this world has been condemned. “I still have many things to say to you, but you cannot bear them now. When the Spirit of truth comes, he will guide you into all the truth; for he will not speak on his own, but will speak whatever he hears, and he will declare to you the things that are to come. He will glorify me, because he will take what is mine and declare it to you. All that the Father has is mine. For this reason I said that he will take what is mine and declare it to you. (John 16:4b-15, NRSV)