What one must come to terms with is that Jesus is Jehovah or also the Great I AM.
It was Jesus who appeared to Abraham, Isaac, and Jacob:
Exodus 6:3
3 And I appeared unto Abraham, unto Isaac,
and unto Jacob, by the name of God Almighty, but by my name Jehovah was I not known to them.
Exodus 3:14-15
14 And God said unto Moses, I Am That I Am: and he said, Thus shalt thou say unto the children of Israel, I Am hath sent me unto you.
15 And God said moreover unto Moses, Thus shalt thou say unto the children of Israel, The Lord God of your fathers, the God of Abraham, the God of Isaac, and the God of Jacob, hath sent me unto you: this is my name for ever, and this is my memorial unto all generations.
Here we learn that the God of the Old Testament that actually appeared to Abraham, Isaaac, Jacob, and Moses was known as God Almighty, Jehovah, and I AM. We learn from the Apostle John's writings that no man up until John had written the book of John had ever seen the Father. This being true, then God Almighty, Jehovah, and I AM was not God the Father.
John 1:18
18 No man hath seen God at any time; the only begotten Son, which is in the bosom of the Father, he hath declared him.
So if the God of the Old Testament who appeared before Abraham, Isaac, Jacob, and Moses was not God the Father, then who was it that appeared before these ancient prophets? We learn from Old Testament scripture that the God of the Old Testament was also to be our Savior.
Isaiah 43:11
I, even I, am the Lord; and
beside me there is no saviour.
Isaiah 45:21
Tell ye, and bring them near; yea, let them take counsel together: who hath declared this from ancient time? who hath told it from that time? have not I the Lord? and
there is no God else
beside me; a just God and a Saviour;
there is none
beside me.
Hosea 13:4
Yet I am the Lord thy God from the land of Egypt, and thou shalt know
no god but
me: for
there is no saviour
beside me.
When questioned by the Jews, these are the words of Jesus:
John 8:54-59
54 Jesus answered, If I honour myself, my honour is nothing: it is my Father that honoureth me; of whom ye say, that he is your God:
55 Yet ye have not known him; but I know him: and if I should say, I know him not, I shall be a liar like unto you: but I know him, and keep his saying.
56 Your father Abraham rejoiced to see my day: and he saw it, and was glad.
57 Then said the Jews unto him, Thou art not yet fifty years old, and hast thou seen Abraham?
58 Jesus said unto them, Verily, verily, I say unto you,
Before Abraham was, I am.
59 Then took they up stones to cast at him: but Jesus hid himself, and went out of the temple, going through the midst of them, and so
passed by.
When Jesus claimed in verse 58 to be the Great I AM, the Jews then took up stones to kill him. So knowing that Jesus is the Great I AM and that the God of the Old Testament was to be our Savior that it was Jesus who revealed the law unto Moses and others of the Old Testament and that it was he who appeared before Abraham, Isaac, Jacob, and Moses and gave him laws against homosexuality since John teaches that no man had see the Father up until John gave us the gospel of John.