Acts 1:23-26 NIV

23 So they nominated two men: Joseph called Barsabbas (also known as Justus) and Matthias.
24 Then they prayed, “Lord, you know everyone’s heart. Show us which of these two you have chosen

References for Acts 1:24

25 to take over this apostolic ministry, which Judas left to go where he belongs.”
26 Then they cast lots, and the lot fell to Matthias; so he was added to the eleven apostles.

References for Acts 1:26