What was meant for evil will be for blessing

But I would ye should understand, brethren, that the things which happened unto me have fallen out rather unto the furtherance of the gospel. Philippians 1:12

The apostles went through some very painful difficult moments, during which they had to face even death, but none of them showed fear or cowardice in the face of what they were experiencing. On the contrary, this made them gain more courage to defend the gospel of Christ Jesus, living to preach and teach the power of resurrection to the very ends of the earth.
Persecutions, imprisonments and stripes did not make them dwindle, turn away from the Way or question God, let alone lose their faith in Jesus. They were sure that the opposition came from the enemy, who did not want them to reach their purpose; for our fight is not against flesh and blood but against the kingdom of darkness which opposes us and fights against us, so we surrender. But these words Apostle Paul wrote to the Philippians show that everything works for the good, for that which the enemy thought to be for destruction, it turned into victory.
Take this in as a teaching so you do not to lose faith. Likewise, what was meant for evil will be for blessing.