If Jesus is God, then who did he pray to in Luke 5:16, Matthew 26:39, and Hebrews 5:7?

Because of Jesus’ two natures, which are divine and human, he would as a man have someone he would call God. This does not imply that there are multiple gods since the doctrine of the Trinity states that there is one, (Deut. 6:4; Isa. 45:5, 14, 18, 21-22) who exists in three persons (Gen. 1:26-27; Amos 4:11; Matt. 28:19; 2 Cor. 13:14). The second person of the Trinity (the Son) was born here on the earth as a man under the law (Gal. 4:4) and was temporarily lower than the angels (Heb. 2:9). He was the Word of God, which was God, and was made flesh (John 1:1, 14). As a result to all these criteria Jesus would properly pray to the Father. Since Jesus is not the Father, there is nothing in the verse that contradicts Jesus’ divinity.