When you sleep you gain secrets from beyond the stars, but such power comes with a price.
Prerequisites: Ability to cast divine spells, caster level 7th, worshiper of a Great Old One or Outer God.
Benefit: With each night’s rest, you can choose two spells from the wizard spell list, both of which must be at least 1 wizard spell level lower than the highest level divine spell you can cast. If you are a spontaneous caster, these spells are added to your spells known for 24 hours. If you prepare spells, you can prepare these spells any time you do so in the next 24 hours. Each time you attempt to cast one of the wizard spells you have chosen, you must succeed at a DC 20 Will save or take 1d2 points of Wisdom damage and fail to cast the spell, though you do not lose the spell.
Pathfinder Campaign Setting: Inner Sea Gods © 2014, Paizo Publishing, LLC; Authors: Sean K Reynolds, with Amanda Hamon, James Jacobs, John Ling, Mark Moreland, David N. Ross, F. Wesley Schneider, Amber E. Scott, Tork Shaw, James L. Sutter, Jerome Virnich.