After Jesus ascended into heaven, the church gathered and prayed waiting for the Holy Spirit. In preparing, they were lead to fulfill the Scripture and replace the the disciple Judas Iscariot in order to have a new witness share in the ministry of apostleship.
In an analogous way, we need to devote ourselves to prayer, obeying God's Word and being witnesses.