Passage
And having heard [it] they were pricked in heart, and said to Peter and the other apostles, What shall we do, brethren?
And having heard [it] they were pricked in heart, and said to Peter and the other apostles, What shall we do, brethren?
Acts 2:35 until I have put thine enemies [to be] the footstool of thy feet.
Acts 2:36 Let the whole house of Israel therefore know assuredly that God has made him, this Jesus whom *ye* have crucified, both Lord and Christ.
Acts 2:37 And having heard [it] they were pricked in heart, and said to Peter and the other apostles, What shall we do, brethren?
Acts 2:38 And Peter said to them, Repent, and be baptised, each one of you, in the name of Jesus Christ, for remission of sins, and ye will receive the gift of the Holy Spirit.
Acts 2:39 For to you is the promise and to your children, and to all who [are] afar off, as many as [the] Lord our God may call.
The verse centers on "having", "heard", "pricked", "heart", "said", "peter", "other", and "apostles". It is saying that the verse draws attention to "having" and "heard", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 36's "Let the whole house of Israel therefore..." into verse 38's "And Peter said to them Repent and...", so "having" and "heard" belong inside that flow. In Acts context, the local focus is Christ, faith, and discipleship.
A plain takeaway is to answer the verse's own emphasis on "having" and "heard" with trust shaped by these words, not by a vague optimism outside the passage.