The “Law and the Prophets” refer to the first five books of the Law and all the major and minor prophecy books. But generally this also includes the books of poetry or wisdom books since much of the time they also offer prophecy, such as in Psalms 22:1.
Matthew 5:17 (ESV) “Do not think that I have come to abolish the Law or the Prophets; I have not come to abolish them but to fulfill them.
Matthew 7:12 (ESV) “So whatever you wish that others would do to you, do also to them, for this is the Law and the Prophets.
Matthew 11:13 (ESV) For all the Prophets and the Law prophesied until John,
Matthew 22:37-40 (ESV)
37 And he said to him, “You shall love the Lord your God with all your heart and with all your soul and with all your mind.
38 This is the great and first commandment.
39 And a second is like it: You shall love your neighbor as yourself.
40 On these two commandments depend all the Law and the Prophets.”
Luke 16:16 (ESV) “The Law and the Prophets were until John; since then the good news of the kingdom of God is preached, and everyone forces his way into it.
Luke 24:44 (ESV) Then he said to them, “These are my words that I spoke to you while I was still with you, that everything written about me in the Law of Moses and the Prophets and the Psalms must be fulfilled.”
John 1:45 (ESV) Philip found Nathanael and said to him, “We have found him of whom Moses in the Law and also the prophets wrote, Jesus of Nazareth, the son of Joseph.”
Acts 13:15 (ESV) After the reading from the Law and the Prophets, the rulers of the synagogue sent a message to them, saying, “Brothers, if you have any word of encouragement for the people, say it.”
Acts 24:14-15 (ESV)
14 But this I confess to you, that according to the Way, which they call a sect, I worship the God of our fathers, believing everything laid down by the Law and written in the Prophets,
15 having a hope in God, which these men themselves accept, that there will be a resurrection of both the just and the unjust.
Acts 28:23 (ESV) When they had appointed a day for him, they came to him at his lodging in greater numbers. From morning till evening he expounded to them, testifying to the kingdom of God and trying to convince them about Jesus both from the Law of Moses and from the Prophets.
Romans 3:21-22 (ESV)
21 But now the righteousness of God has been manifested apart from the law, although the Law and the Prophets bear witness to it—
22 the righteousness of God through faith in Jesus Christ for all who believe. …