John 17:1-5
I glorified you on earth, having accomplished the work that you gave me to do. (John 17:4 ESV)
Knowing you have accomplished a great task is incredibly fulfilling. There is not quite anything like it. When I was growing up on the farm it was great getting that sense of accomplishment from finishing something that my dad had for me to do. Jesus' Dad had set a task before him as well.
Jesus' task was to bring about the salvation of mankind. He said himself that he came "to seek and to save that which was lost." A task that he accomplished. Restoration was made ready. It is possible.
Jesus brought glory to His Father when he accomplished the task. When God sets a task before you accomplishing it brings glory to Him as well. And even sometimes when we fail, the simple act of pursuit and obedience is a way in which we bring Him glory. Because God gets glory when we long to be restored to relationship with Him. And if there is anything worth having been accomplished, it is bringing glory to God.