Westminster 1: the whole counsel of God is in Scripture (1646)
The Westminster Confession teaches that the whole counsel of God concerning all things necessary for his own glory, man's salvation, faith and life, is either expressly set down in Scripture, or by good and necessary consequence may be deduced from Scripture, unto which nothing at any time is to be added, whether by new revelations of the Spirit or traditions of men. And that the supreme judge of all controversies is the Holy Spirit speaking in the Scripture.
It is the answer to Trent, and it rests on 2 Timothy 3.