The ability that governs bonus spells is determined by what type of spellcaster your character is: Intelligence for wizards; knowledge for clerics, druids, paladins, and rangers; or Charisma for sorcerers and bards.
A https://mariyahtwep787485.liberty-blog.com/31996459/dnd-dice-set-fundamentals-explained