It has been recorded that Jesus denied that he is God in the verses below from the KJV:
Matthew 19
17 And he said unto him, Why callest thou me good? there is none good but one, that is, God: but if thou wilt enter into life, keep the commandments.
Mark 10
18 And Jesus said unto him, Why callest thou me good? there is none good but one, that is, God.
Luke 18
19 And Jesus said unto him, Why callest thou me good? none is good, save one, that is, God.
Based on the above Scripture, we can find the following information:
Jesus rhetorically questions why he is being called "good" and says that only God is good. This means that Jesus is distinguishing himself from God and that absolute goodness belongs exclusively to God. In saying this, Jesus denies that he possesses the absolute goodness that God has.
This distinction that Jesus pointed out between himself and God is evident in his rhetorical question about why he is being called good. If Jesus were God, then it would not be consistent for him to deny being called good and thus deny having this divine attribute of God.
Since Jesus denied having the absolute goodness of God, Jesus strongly inferred that he is just a teacher and a prophet. In John 8:28, Jesus stated, "I do nothing of myself; but as my Father hath taught me, I speak these things." Therefore, Jesus was himself taught by his God and Father. Needing to be taught by God means that Jesus is not omniscient and didn't inherently know the things he himself was teaching until he was taught.
Therefore, Jesus denied being God.