You did not think that they would go out , and they thought their fortresses would protect them from Allah . But Allah came upon them from where they did not expect , casting terror into their hearts that their homes were destroyed by their own hands as well as by the hands of the believers .