According to John 1:21
They asked him, “What then? Are you Elijah?”
He said, “I am not.”
“Are you the prophet?”
He answered, “No.”
Why did he said he wasn't a prophet?
Christianity Stack Exchange is a question and answer site for committed Christians, experts in Christianity and those interested in learning more. It only takes a minute to sign up.Sign up to join this community
Moses told the people to expect in the future an authoritative, law giving prophet of at least equal stature to himself. No other prophet that followed Moses was regarded as important as Moses by the Jewish people. Thus this expected prophet would stand out.
15 “The Lord your God will raise up for you a prophet like me from among your own brothers. You must listen to him. 16 This is what you requested from the Lord your God at Horeb on the day of the assembly when you said, ‘Let us not continue to hear the voice of the Lord our God or see this great fire any longer, so that we will not die!’ 17 Then the Lord said to me, ‘They have spoken well. 18 I will raise up for them a prophet like you from among their brothers. I will put My words in his mouth, and he will tell them everything I command him. 19 I will hold accountable whoever does not listen to My words that he speaks in My name. (Deuteronomy 18:15-19)
Jesus fulfills the requirements. John the Baptist does not.