On the night Jesus instituted the Lord’s Supper He gave thanks. We aren’t told the what for, not explicitly. It seems reasonable that it was for more than the meal itself, but for all that went into it, and for all that would come from it.
There are a few other places in the Gospels where Jesus gives thanks and where we are told what He said. Here’s one example.
At that time, Jesus declared, “I thank you, Father, Lord of heaven and earth, that you have hidden these things from the wise and understanding and revealed them to little children; yes, Father, for such was your gracious will. (Matthew 11:25-26)
God reveals, but God also hides, on purpose, such that the Son thanks His Father for the hiding. Jesus goes on.
“All things have been handed over to me by my Father, and no one knows the Son except for the Father, and no one knows the Father except the Son and anyone to whom the Son chooses to reveal him. (Matthew 11:27)
Then He follows up on His sovereign prerogative with the encouragement.
Come to me, all who labor and are heavy laden, and I will give you rest. Take my yoke upon you, and learn from me, for I am gentle and lowly in heart, and you will find rest for your souls. For my yoke is easy, and my burden is light. (Matthew 11:28-30)
Luke records a different follow up.
Then turning to the disciples, he said privately, “Blessed are the eyes that see what you see! For I tell you that many prophets and kings desired to see what you see, and did not see it, and to hear what you hear, and did not hear it.” (Luke 10:23-34)
What a gift. How blessed we are, to understand the Father’s gracious will, to see His salvation, and to have been drawn to the Son and His rest. He who did not spare His own Son, how will He not also with Him graciously give us all things?