The damage done by Justice is done as a triggered ability, which is added to the stack just after the red creature or spell deals its damage.

Artwork
Loading artwork…
Justice
Fifth Edition · #41 · EN
Nonfoil—Foil—
Card rules
At the beginning of your upkeep, sacrifice this enchantment unless you pay 
.
Whenever a red creature or spell deals damage, this enchantment deals that much damage to that creature's or spell's controller.
Uncommon · Illustrated by Ruth Thompson
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
PreDH Legal
Premodern Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If a single source does damage to multiple targets at once, Justice will add up all the damage done and deal damage to the source’s controller at one time (not multiple separate damagings).