at least 3 levels in the cleric, druid, sorcerer, warlock or wizard class
You gain a number of additional spells equal to your proficiency bonus. If you are a cleric, druid or faerie, choose a class: sorcerer, wizard or warlock. If you are a sorcerer, warlock or wizard, choose a class: cleric, druid or faerie. The spells you gain must appear on your chosen class’ spell list, but not on your class’ spell list. They must be at least 1st-level, and their level cannot exceed than the spells you can learn or prepare for your class. The spells are added to your class’ spell list for you. If your spellcasting feature allows you to learn spells, you learn them. If your spellcasting feature requires you to prepare spells, you can prepare them as you would other spells. If you are a wizard, the spells are added to your spellbook, and you can prepare them, or copy them as you would any other wizard spell. If you lose your spellbook, you can copy the selected spells into a new spellbook with the aid of a spell scroll. When your proficiency bonus increases, you can select an additional spell from your chosen class’ list to gain in a similar manner as the others you gained from this feat. Additionally, if your spellcasting feature allows you to exchange spells when you gain a level in your class, you can exchange one of these spells instead, choosing a new spell from the your chosen class’ spell list.