We cannot definitively ascertain whether they had imparted the spirit of devoutness to their son, reflecting their own piety, or conveyed his unique mission and the responsibilities tied to it, including recognizing Jesus as the Forerunner of the Messiah.
However, it is reasonable to assume a kinship between the mothers of John and Jesus and that they maintained a close friendship prior to the births of their sons. Despite John's ascetic life in the Judean wilderness and Jesus residing in Nazareth, it would have been customary for John to visit Jerusalem during major Jewish feasts, where encounters between them could have occurred due to their familial relations. Thus, John could have known Jesus as the holy and blameless individual even before His baptism. This familiarity might have led John to sense through the Holy Spirit that Jesus was indeed the promised Messiah. It is plausible that John's parents had already signified to him the identity of Jesus as the Christ. Nonetheless, these avenues of knowing Jesus were insufficient for John's prophetic role; it was essential for him to receive a direct divine revelation of the Messiah. Consequently, God assured John that the One on whom he saw the Spirit descend and remain would be the One who baptizes with the Holy Spirit (John 1:33). After receiving this divine confirmation, John understood that he did not recognize Jesus before His baptism (John 1:33).
Some scholars suggest that the lives of Jesus and John unfolded separately by divine design to allow for more profound mutual testimony later. In this context, Matthew's account illustrates that when Jesus approached John, the Baptist, a seasoned observer of souls, immediately perceived Him as the pure and sinless One, filled with the conviction that this was the expected Messiah. John hesitated to baptize the Lord because he realized that his baptism symbolized repentance and cleansing from sin, which was unnecessary for the sinless Jesus; instead, John desired to be baptized by Christ. Jesus counseled him not to dwell on these thoughts, affirming that John's concerns were fundamentally valid. The rationale for the sinless Lord receiving baptism from John was to fulfill all righteousness—that is, to comply with God's commands. Thus, Jesus regarded John's baptism as part of the Old Testament's divinely ordained preparations for the coming of the Messiah.
As the Son and Savior of a sinful people, Jesus willingly accepted the law's requirements to redeem those who transgressed it (Galatians 4:4-5) and fulfilled all its demands perfectly. The Lord's stated purpose in receiving baptism does not exclude other divine intentions being realized simultaneously. John's words in the Gospel of John (1:31-34) indicate that Jesus was baptized to openly demonstrate His identity as the Son of God, first to John and subsequently to all of Israel. Additionally, this event was crucial for Jesus' anointing with the Holy Spirit for His messianic mission, as testified by John, who declared, “I have seen the Spirit descending from heaven and remaining on Him” (John 1:32). Some interpreters also suggest that Christ’s immersion in water symbolized His voluntary commitment to undertake a path of humiliation, a journey He embraced from the outset of His earthly ministry, culminating in His death for the sins of humanity.