The Gospel According to Matthew (; also called the Gospel of Matthew or simply, Matthew) is the first book of the New Testament. The narrative tells how the Messiah, Jesus, rejected by Israel, finally sends the disciples to preach the gospel to the whole world. 

Most scholars believe the Gospel of Matthew was composed between AD 80 and 90, with a range of possibility between AD 70 to 110 (a pre-70 date remains a minority view). The anonymous author was probably a male Jew, standing on the margin between traditional and non-traditional Jewish values, and familiar with technical legal aspects of scripture being debated in his time. Writing in a polished Semitic "synagogue Greek", he drew on three main sources: the Gospel of Mark, the hypothetical collection of sayings known as the Q source, and material unique to his own community, called the M source or "Special Matthew". 

The divine nature of Jesus was a major issue for the Matthaean community, the crucial element marking them from their Jewish neighbors; while Mark begins with baptism and transfiguration, Matthew goes back further still, showing Jesus as the Son of God from his birth, the fulfillment of Old Testament messianic prophecies. The title Son of David identifies Jesus as the healing and miracle-working Messiah of Israel (it is used exclusively in relation to miracles), sent to Israel alone. As Son of Man he will return to judge the world, an expectation which his disciples recognise but of which his enemies are unaware. As Son of God he is God revealing himself through his son, and Jesus proving his sonship through his obedience and example.
How many sources did the author use?
he drew on three main sources