What did Peter and John do when they were released by the religious authorities? They returned to their friends...and they prayed.
In their prayer, they placed everything that had happened and that they were doing within the context of the Sovereign Lord's plan, as found in scripture. They did not pray for things to change or to get better, and they did not pray for their own felt needs. Instead, they prayed for boldness to keep preaching and to carry out the work of God.