In the beginning was the Word, and the Word was with God, and the Word was God” – John 1:1

Declaration that at the very beginning of Time, Jesus (The Word) was WITH God and WAS (from and part of) God.  Read Genesis 1:26 when God created Man, where He said

And God said, Let US make man in OUR image, after OUR likeness

Read John 8:58:  “Jesus said unto them, Verily, verily, I say unto you, Before Abraham was, I am.”