Righteous Defense

2nd-level Abjuration
Casting Time: 1 reaction
Range: 30 feet
Components: VS
Duration: (C) 1 minute

You surround an ally with holy protection. The next 3 single-target attacks that would hit the protected friendly target damage you instead, as long as you are within 30 feet of the protected target. You suffer the damage and effects of the attack as if you were hit with the attack, rather than the target. This damage does not provoke concentration saving throws, and you have advantage on concentration checks to maintain this spell. After taking 3 attacks for the shielded ally, the spell ends.
At Higher Levels. When you cast this spell using a spell slot of 3rd level or higher, the number of attacks you can redirect increases by one for each slot level above 2nd.

Source: Homebrew