Safecasting (5e Feat)
From D&D Wiki
Prerequisites: The ability to cast at least one spell.
A caster with this feat takes no damage from their own spells. In addition, they can make creatures of their choice automatically succeed on the saving throw against their spell's damage, or have creatures of their choice that succeed on the save (Without being aided by this feat to do so) take no damage from the spell instead of half.