The card reads: You may choose an artifact or creature card with mana value 1 you discarded this way, then do the same for artifact or creature cards with mana values 2 and 3. In the right decks, you basically get to pay four mana to draw some cards and put six manas worth of cards into play
This means that you get your cards whether it dies, is sacrificed (which is also dying, but can sometimes differentiate other triggers), is exiled, or is returned to your hand
Instant staples for Commander

Chaos Orb Falling Star Shahrazad The following cards are restricted in Vintage: Ancestral Recall Balance Black Lotus Brainstorm Chalice of the Void Channel Demonic Consultation Demonic Tutor Dig Through Time Flash Gitaxian Probe Golgari Grave-Troll Gush Imperial Seal Karn, the Great Creator Library of Alexandria Lion's Eye Diamon Lodestone Golem Lotus Petal Mana Crypt Mana Vault Memory Jar Mental Misstep Merchant Scroll Mind's Desire Monastery Mentor Mox Emerald Mox Jet Mox Pearl Mox Ruby Mox Sapphire Mystic Forge Mystical Tutor Narset, Parter of Veils Necropotence Sol Ring Strip Mine Thorn of Amethyst Time Vault Time Walk Timetwister Tinker Tolarian Academy Treasure Cruise Trinisphere Urza's Saga Vampirir Tutor Vexing Bauble Wheel of Fortune Windfall Yawgmoth's Will All Banned Cards For Legacy Format In 2024 Every Disallowed Card For Legacy Format The Legacy format is almost identical to the Vintage format, where it allows for all MTG sets since release and plays in the exact same style

Swords to Plowshares is premier removal in Commander, Legacy, and Vintage, while Modern has to make do with Path to Exile