Jesus and Paul both taught sola scriptura
SOLA SCRIPTURA
2 Cor 6:17-18
17 Therefore "Come out from among them and be separate, says the Lord. Do not touch what is unclean, and I will receive you."
18 "I will be a Father to you, and you shall be My sons and daughters, says the Lord Almighty."
(NKJ)
John 14:26
26 "But the Helper, the Holy Spirit, whom the Father will send in My name, He will teach you all things, and bring to your remembrance all things that I said to you.
(NKJ)
2 Cor 5:5
5 Now He who has prepared us for this very thing is God, who also has given us the Spirit as a guarantee.
(NKJ)
1 Cor 4:6
6 Now these things, brethren, I have figuratively transferred to myself and Apollos for your sakes, that you may learn in us not to think beyond what is written, that none of you may be puffed up on behalf of one against the other.
(NKJ)
Rev 22:18-19
18 For I testify to everyone who hears the words of the prophecy of this book: If anyone adds to these things, God will add to him the plagues that are written in this book;
19 and if anyone takes away from the words of the book of this prophecy, God shall take away his part from the Book of Life, from the holy city, and from the things which are written in this book.
(NKJ)
John 1:1
1 In the beginning was the Word, and the Word was with God, and the Word was God.
(NKJ)