It doesn’t matter what the creature dealt damage to or if that damage was combat damage.

Artwork
Loading artwork…
Executioner's Swing
Gatecrash · #161 · EN
Nonfoil—Foil—
Card rules
Target creature that dealt damage this turn gets -5/-5 until end of turn.
"The contract specified an appendage for a missed payment. Read the fine print: the head is an appendage."
Common · Illustrated by Karl Kopinski
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
Pioneer Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
You can’t choose a creature that hasn’t yet dealt damage during the turn as the target of Executioner’s Swing, so in most cases it’s not possible for Executioner’s Swing to reduce the amount of combat damage a creature deals. (If a creature has double strike, you could cast Executioner’s Swing after it deals first-strike damage but before it deals regular combat damage.)