Hi motirattan, hope you are well. I came across this on the web:
Compared to the New Testament, there was much less controversy over the canon of the Old Testament. Hebrew believers recognized God’s messengers and accepted their writings as inspired of God. While there was undeniably some debate in regards to the Old Testament canon, by A.D. 250 there was nearly universal agreement on the canon of Hebrew Scripture. The only issue that remained was the Apocrypha, with some debate and discussion continuing today. The vast majority of Hebrew scholars considered the Apocrypha to be good historical and religious documents, but not on the same level as the Hebrew Scriptures.
For the New Testament, the process of the recognition and collection began in the first centuries of the Christian church. Very early on, some of the New Testament books were being recognized. Paul considered Luke’s writings to be as authoritative as the Old Testament (1 Timothy 5:18; see also Deuteronomy 25:4 and Luke 10:7). Peter recognized Paul’s writings as Scripture (2 Peter 3:15-16). Some of the books of the New Testament were being circulated among the churches (Colossians 4:16; 1 Thessalonians 5:27). Clement of Rome mentioned at least eight New Testament books (A.D. 95). Ignatius of Antioch acknowledged about seven books (A.D. 115). Polycarp, a disciple of John the apostle, acknowledged 15 books (A.D. 108). Later, Irenaeus mentioned 21 books (A.D. 185). Hippolytus recognized 22 books (A.D. 170-235). The New Testament books receiving the most controversy were Hebrews, James, 2 Peter, 2 John, and 3 John.
I'd like to add that from reading the Gospels, one can gather that Jesus actually held to what we call the Old Testament ( The law, prophets etc.).