 Jesus was not saying, I am finished. That's not what he was doing. He wasn't saying that in a defeated way as if he had just tried to do everything that he could but just couldn't get it done. That's not it at all. His death was not an accident. It was designed and planned by God so that we could be justified in God's sight.