The Sadducees thought they had gotten rid of the apostles. They put them in prison, but they were not forsaken. God had a work for them to do and was well able to meet their needs in performing His will.
Acts 5:18-20 And laid their hands on the apostles, and put them in the common prison. But the angel of the Lord by night opened the prison doors, and brought them forth, and said, Go, stand and speak in the temple to the people all the words of this life.
These apostles had encountered the risen Lord and received the power of the Holy Spirit. There was a fire burning in their souls that couldn’t be quenched.
Hell may rage, but I have been redeemed; I belong to the King of glory. I can do all things through Christ which strengtheneth me.