They were both righteous before God, walking blamelessly in all the commandments and ordinances of the Lord.
Jesus said, of all the prophets born of woman, there hasn't been a greater one than arise than John. "Thou shalt be called the prophet of the Highest."