He prayed to His Father............Jesus was God the same way that you are your fathers child, Jesus had the "essence" of God.
Essence: the most important or essential part. You contain the "essence" of your parents. An apple tree produces apples.......nothing else.
Read the scriptures. Jesus speaks of His Father as a separate being. The Father and Jesus are working (John 5:17,19)
Jesus speaks of the Father loving Him. (John 5:20) Jesus was delegated authority from Heaven (John 5:22, 26-27).
Jesus does not do His own will. (John 5:30).
Jesus declares that "self witness" is not valid, it must take the witness of others (John 5:31). And there are separate witness to Jesus (John 5:32). Found in that list of witnesses Jesus mentions the Father as a witness. (John 5:37-38)
Father God speaks of Jesus as being a separate being. "This is My beloved Son......" (Matt. 3:16-17, Matt. 17:5).
John says that God bears witness to Jesus (1 John 5:9). All 3 beings of the Godhead are mentioned in scripture, "One Spirit, One Son, and One Father God........." (Eph. 4:4-6)
In the beginning Jesus preexisted creation (John 1:1). Jesus is the SON OF GOD. Some attempt to declare that a Son is not the same as the Father, such as the Jehovah's witnesses........but then they can't explain how the Son can exist without the Father, if the Son did not possess the essence of the Father.....there would be no family connection. In modern terminology would would say that Jesus share divine DNA with the Father.
Such people present a logical fallacy and declare, The Son of a president is not a president

.......when you ask them if the son of a dog is still a dog.......you get that deer in a headlight confused look. Its a logical fallacy........a president is not a person, its a position. A president is a position that only 1 person at a time can hold. Deity is not a position, but THE NATURE OF BEING.
Even the hierarchy of the Jewish leaders realized that Jesus claiming to be The Son of God....made Him equal to God. (John 5:18)
God calls His Son..........God. (Heb. 1:8). Jesus was God. (John 1:1). Jesus thought it not robbery to be equal with God. (Phil 2:6)