He is referring to the OLD testament
Paul perhaps was but not Peter. Peter specifically states that Paul's writings are inspired.