Paul and Silas were able to trust God even though the authorities beat them and put them in prison. Therefore, they were singing and praising God.