And God said to Moses, “I AM WHO I AM.” And He said, “Thus you shall say to the children of Israel, ‘I AM has sent me to you.’ ” NKJV Exodus 3:14
Jesus said to them, “Most assuredly, I say to you, before Abraham was, I AM.” NKJV John 8:58
The first thing to know when looking at these verses is what yahweh actually means. In hebrew it can be translated to I AM or simply the lord in english. When Yahweh is telling moses who is he says "I Am, tell them I Am sent you"
Many people believe that Jesus means that he was before Abraham in John 8:58, but this is not what he meant in this case. He is referring back to exodus 3:14 where Yahweh reveals himself as I Am. Therefore Jesus saying that he is I am is the same thing as claiming to be God himself.