The three-source hypothesis is a candidate solution to the synoptic problem. It combines aspects of the two-source hypothesis and the Farrer hypothesis. It states that the Gospel of Matthew and the Gospel of Luke used the Gospel of Mark and a sayings collection as primary sources, but that the Gospel of Luke also used the Gospel of Matthew as a subsidiary source. The hypothesis is named after the three documents it posits as sources, namely the sayings collection, the Gospel of Mark, and the Gospel of Matthew.
The sayings collection may be identified with Q, or with a subset of Q if some (typically narrative-related) material normally assigned to Q is instead attributed to Matthew's creativity in conjunction with Luke's use of Matthew.