Peter therefore was kept in prison: but prayer was made without ceasing of the church unto God for him.
So Peter was kept in prison, but the church was fervently praying to God for him.
Read Acts 12