Protection from Energy: 2nd-level Abjuration · A5E.
Until the spell ends, the target has resistance to one of the following damage types: acid, cold, fire, lightning, thunder.
Using a Higher-Level Spell Slot.
For each slot level above 2nd, the target gains resistance to one additional type of damage listed above, with a maximum number equal to your spellcasting ability modifier.
Source: A5E System Reference Document (A5ESRD) by EN Publishing, used under the CC-BY-4.0 (credits). Open-licensed 5e content, not part of the official SRD.