Whenever Thief of Sanity deals combat damage to a player, look at the top three cards of that player's library, exile one of them face down, then put the rest into their graveyard. You may look at and cast that card for as long as it remains exiled, and you may spend mana as though it were mana of any type to cast that spell.
Thief of Sanity’s effect doesn’t change when you can cast the exiled card. For example, if you exile a sorcery card, you can cast it only during your main phase when the stack is empty.
An effect that instructs you to “cast” a card doesn’t allow you to play lands.
You can still cast the exiled card if Thief of Sanity leaves the battlefield or leaves your control. If another player gains control of Thief of Sanity, that player can’t cast the exiled card.
Casting an exiled card causes it to leave exile. You can’t cast it multiple times.
In a multiplayer game, if a player leaves the game, all cards that player owns leave as well. If you leave the game, any spells or permanents you control from Thief of Sanity’s effect are exiled, and any of the face-down exiled cards remain face down indefinitely. No player may look at them.