Magic Staff (5e Spell)
From D&D Wiki
|Casting time:||1 action|
You touch a nonmagical staff. Until the spell ends, that staff becomes a magic weapon with a +1 bonus to attack rolls and damage rolls. Additionally, a creature which is wielding the staff gains a +1 bonus to spell attack rolls. As part of the casting of this spell, you can cast a cantrip you know and up to two spells of 3rd-level or lower which you are normally able to cast. Instead of the normal effect of each spell, the spell is imbued in the staff. A creature which is wielding the staff can cast a cantrip which is imbued in the staff from the staff at will, and it can cast a spell of 1st level or higher which is imbued in the staff once during the duration of the spell, even if the creature is normally unable to cast spells. The creature uses your spellcasting ability modifier and saving throw DC in place of its own, if any. If a spell which requires material components is imbued in the staff, those material components are expended once by you when you cast the spell - the wielder of the staff does not have to provide them again.
This spell immediately ends if you cast it again before its duration ends.