Blessing of Wisdom

5th-level Transmutation
Casting Time: 1 bonus action
Range: 30 feet
Components: VS
Duration: 1 minute

You bless the target with the wisdom of the ages. When tapped in to, this wisdom can provide the pathways of efficient casting. Whenever the blessed target casts a spell, make an Intelligence check with DC 15 + the spell's level. The blessed target may use whatever Intelligence skill is most fitting for the spell being cast (so Arcana for most wizard spells, Religion for most priest spells, Nature for most Druid spells, etc.)
Success on this check refunds mana spent on the spell equal to the amount the check succeeded by (minimum 1). The blessing cannot refund more mana than what was spent, and the blessed target must have the mana to cast the spell at its full cost to do so. Spells with a limited number of slots are still counted as as spent, even if their entire mana costs are refunded.
A creature can only have one Blessing spell on them at a time.
At Higher Levels. When you cast this spell using a spell slot of 7th level or higher, you can target an additional creature for each two slot levels above 5th.

Source: Homebrew