Ye deemed not that they would go forth , while they deemed that their strongholds would protect them from Allah . But Allah reached them from a place whereof they recked not , and cast terror in their hearts so that they ruined their houses with their own hands and the hands of the believers .