They were in prison because they had ◄rebelled against/not obeyed► the message of God; they were there because they had despised the advice given by God, who is greater than all other gods.