Selfless Squire's first triggered ability prevents all damage that would be dealt to you this turn after the triggered ability resolves, even if Selfless Squire leaves the battlefield.

Artwork
Loading artwork…
Selfless Squire
Murders at Karlov Manor Commander · #82 · EN
Nonfoil—Foil—
Card rules
Flash
When this creature enters, prevent all damage that would be dealt to you this turn.
Whenever damage that would be dealt to you is prevented, put that many +1/+1 counters on this creature.
1/1
Rare · Illustrated by Tony Foti
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker 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
PreDH Not Legal
Premodern 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
Selfless Squire's second triggered ability doesn't trigger only when damage is prevented by its first triggered ability's effect. Any effect that uses the word "prevent" will cause it to trigger.