Core rule
Known and prepared spells
Knowing a spell and having it ready to cast are not always the same.
Classes learn and select spells differently. Preparation-based casters must prepare spells from those they know or can access.
Always-prepared and item-granted spells can use separate rules. If a spell is missing, check preparation and its source as well as available slots.