5 “[Jesus] knowing that the Father has given all things into His hands.” And therefore also the traitor himself: for if He had him not in His hands, He certainly could not use him as He wished. Accordingly, the traitor had been already betrayed to Him whom he sought to betray; and he carried out his evil purpose in betraying Him in such a way, that good he knew not of was the issue in regard to Him who was betrayed. For the Lord knew what He was doing for His friends, and patiently made use of His enemies: and thus had the Father given all things into His hands, both the evil for present use, and the good for the final issue. “Knowing also that He has come from God, and is going to God:” neither quitting God when He came from Him, nor us when He returned.
Source: Tractates on the Gospel of John (New Advent)