Had the people of the towns believed and turned righteous , We would have opened for them the blessings of the heaven and the earth ; but they rejected the truth , so We seized them by what they were doing .