First place all the affected creatures in the graveyard, then choose the appropriate number of creatures from the attacker’s graveyard and put them onto the battlefield. Some or all of them may be the same creatures which were just destroyed.

Artwork
Loading artwork…
Glyph of Reincarnation
Legends · #189 · EN
Nonfoil—Foil—
Card rules
Cast this spell only after combat.
Destroy all creatures that were blocked by target Wall this turn. They can't be regenerated. For each creature that died this way, put a creature card from the graveyard of the player who controlled that creature the last time it became blocked by that Wall onto the battlefield under its owner's control.
Common · Illustrated by Susan Van Camp
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
Old School Legal
Pauper Legal
Pauper Commander Legal
PreDH Legal
Tlr 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
Penny Not Legal
Pioneer 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
Yes, you can cast this targeting your opponent’s Walls to good effect.