In the New Testament who was the first person to recognize Jesus as the Messiah? Other than the Apostles, who was the first person in The New Testament to recognize Jesus as the Messiah?
Mary was informed by Gabriel that her Son would be Son of God, and be given the throne of David; while Joseph was made aware that He would save His people

The first to be made cognisant of the fact that Jesus was specifically Messiah, or Christ, were certain shepherds abiding in the fields outside Bethlehem, keeping watch over their flocks by night. The angel passed a remark to the effect that for them, in the City of David, was born a Saviour which is Christ (Messiah) the Lord. They went to see Him.

Then there were Simeon and Anna in the Temple.

This can be read in Matthew 1 and Luke 1 and 2.