what does the bible say?
Matthew, Mark, and Luke share similar content and style, so they are therefore called the Synoptic Gospels. The term "synoptic" means “a common view.” The many similarities between them have led some to wonder if they had a shared source, such as another written account, often called “Q” among scholars. No such document has ever been discovered, and there is little need to propose one. For example, Luke specifically states he learned from others (Luke 1:1–4), indicating he based his account on other sources and eyewitnesses that could also have been used by the other two writers. Additionally, it is possible that one Gospel, like Mark, was written first and served as a source for Matthew and Luke.
Whether or not the Synoptic writers borrowed from similar sources or even from each other, all of Scripture is God-breathed (2 Timothy 3:16). That means the Holy Spirit inspired them all (2 Peter 1:21), so they are without error. Since they are all true, it’s no surprise to find the same accounts in multiple documents. Also, while there are similarities, they are far from being copies of each other. Each has a different purpose and focus. So, the Synoptics are eyewitness accounts from the same time in history about the same events, inspired by the same Holy Spirit. Therefore, it’s no surprise or problem that they share similarities.