Peter continues talking about the prophets' search for salvation.
"They tried to learn"
This is a reference to the Holy Spirit.