Acts 1:23-26 NIV
So they nominated two men: Joseph called Barsabbas (also known as Justus) and Matthias. Then they prayed, “Lord, you know everyone’s heart. Show us which of these two you have chosen to take over this apostolic ministry, which Judas left to go where he belongs.” Then they cast lots, and the lot fell to Matthias; so he was added to the eleven apostles.
NIV: New International Version