The apostles were maligned, wrongly accused, framed and suffer shame and yet they continued to bear it and were willing to suffer it. God was with them. They understood the gospel mission. They were willing to go through all suffering that the gospel might be advanced.
The Apostle Paul wrote the book of Philippians while he was in prison in Rome. He wrote, Philippians 1:12-14 But I would ye should understand, brethren, that the things which happened unto me have fallen out rather unto the furtherance of the gospel; 13 So that my bonds in Christ are manifest in all the palace, and in all other places; 14 And many of the brethren in the Lord, waxing confident by my bonds, are much more bold to speak the word without fear. He requested the church in Philippi to support him in prayer that God’s grace may abide and strengthen him not to give up but to persevere amidst imprisonment.