SRD:Arcane Mastery (Divine Ability)
From D&D Wiki
|This material is published under the OGL|
Benefit: The deity can prepare any wizard spell that it can cast without using a spellbook.
Notes: This ability gives the deity access to every spell on the sorcerer/wizard spell list, provided that the deity has sufficient wizard levels and a sufficient Intelligence score to cast them. The deity also can invent new sorcerer/wizard spells without researching them.