In parashas mishpatim (22:21-23) the pesukim read
כא כָּל-אַלְמָנָה וְיָתוֹם, לֹא תְעַנּוּן. כב אִם-עַנֵּה תְעַנֶּה אֹתוֹ--כִּי אִם-צָעֹק יִצְעַק אֵלַי, שָׁמֹעַ אֶשְׁמַע צַעֲקָתוֹ. כג וְחָרָה אַפִּי, וְהָרַגְתִּי אֶתְכֶם בֶּחָרֶב; וְהָיוּ נְשֵׁיכֶם אַלְמָנוֹת, וּבְנֵיכֶם יְתֹמִים
Don't oppress any widow or orphan. If you will oppress him/her [you'll get yours- Rashi] for if they scream out to me, I will hear his/her scream. And my anger will flare and I will kill you with the sword and your wives will be widows and your children orphans.
Various tanaic sources, also brought by Rashi, darshan the redundancy: If Hashem kills him, of course his wife will be a widow and his children orphans! Rather, this is a separate punishment that there will be no witness to the husband's death and the wives will always have a widow status and will be unable to marry and the children will be unable to inherit their father.
My question is- what did the wife/children do to deserve such a harsh punishment for themselves. By a regular Heavenly death (without the drasha), we can debate whether there needs to be cause for "collateral damage", but this is a specific action against the family members.