The disciples asked Jesus, “Don't the teachers of the Law of Moses say that Elijah must come before the Messiah does?”
And if you believe them, John is Elijah, the prophet you are waiting for.
The disciples answered, “Some people say you are John the Baptist or perhaps Elijah or Jeremiah or some other prophet.”
Jesus told them, “Elijah certainly will come and get everything ready.
Then when they asked him if he were Elijah, he said, “No, I am not!” And when they asked if he were the Prophet, he also said “No!”
They asked him, “Why are you baptizing people, if you are not the Messiah or Elijah or the Prophet?”