“I did not recognize him as the Messiah, but I have been baptizing with water so that he might be revealed to Israel.” (John 1:31 NLT).

HOW WELL DID JOHN KNOW JESUS?
John the Baptist and Jesus were cousins born six months apart. Both births were miraculous, foretold by the prophets and announced by the angel Gabriel. Yet, John said that he “did not recognize” Jesus as the Messiah until after His baptism. Some suggest that since John grew up in Hebron and Jesus in Nazareth, they had never met before. But this seems unlikely. Mary and Elizabeth were apparently close before their sons were born, but they were no doubt bound together even closer after the spiritual experience they had together during their pregnancies (See Luke 1:39-56). In addition, the gospel of Matthew reported that John recognized Jesus before His baptism and felt unworthy to baptize Him (Matt. 3:14).
 
So what did John mean by saying he didn’t “recognize” Jesus, if he already knew Him and already considered Him to be greater than himself? Perhaps John did recognize Jesus as his cousin, and as one who was well known in their families as being announced as the long awaited Messiah. But that was thirty years ago and John had seen no confirmation as of yet. So, it was on the day of Christ’s baptism that the Lord spoke to John and revealed to him that Jesus was indeed the Messiah by the appearance of the Spirit descending like a dove upon Jesus. What his mother, Elizabeth, had told him, was true. Jesus was the Messiah. John finally saw Him with spiritual eyes and proclaimed Jesus as the Lamb of God, the Messiah, as he had been born to do.