For he knew that because of envy they had delivered him up. — Matthew 27:18, World English Bible translation
In this verse, Matthew declares that the Son of Yahweh knew why the Jewish leaders had delivered him up to die, the reason being “envy.” How did the Son of Yahweh know this? There are those who claim that Jesus, the Son of God, knew this, because Jesus is God Himself. Their reasoning is that only the Supreme Being could know of this, and thus they will present this scripture as proof that the Son of the Supreme Being is the Supreme Being. In lists presented by trinitarians, this scripture may also be presented as proof that Jesus was omniscient, knowing absolutely everything in the universe.
In reality, both thoughts are assumptions that have to be added to and read into what Matthew said. In effect, the argument that this scripture offers proof that Jesus is Yahweh is based upon the assumptions added to and read into the scripture, rather than on anything that is actually stated. (Indeed, this is true of every scripture that is presented to allegedly prove that Jesus is Yahweh.)
The more scriptural way of viewing what Matthew said is to apply scriptural revealment with scriptural revealment. From other scriptures we read that the Son of Yahweh is given his authority and power from the only true God. All things — all power and authority — have been given to Jesus (with the evident exception of God himself — 1 Corinthians 15:27), yet the exercise of this power and authority by Jesus is all to the praise of Yahweh, the God and Father of the Lord Jesus. The Bible writers never claimed that Jesus is the ultimate “source” of his own power. — Psalm 2:6-8; 45:7; 110:1,2; Isaiah 9:6,7; 11:2; 42:1; 61:1-3; Jeremiah 23:5; Daniel 7:13,14; Matthew 12:28; 28:28; Luke 1:32; 4:14,18; 5:17; John 3:34; 5:19,27,30; 10:18,36-38; Acts 2:22; 10:38; Romans 1:1-4; 1 Corinthians 15:27; 2 Corinthians 13:4; Colossians 1:15,16; 2:10; Ephesians 1:17-22; Philippians 2:9-11; Hebrews 1:2,4,6,9; 1 Peter 3:22.
Just as Jesus could “cast out demons” by means of the power that he received from God’s spirit (Matthew 12:27), so Jesus could use that same spirit of his God to know why the Jewish leaders wanted him dead.
There is nothing in this, however, that offers any proof that the Son of Yahweh is Yahweh.