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