Quran 12:34 — Joseph (Yousuf)
His Lord answered his prayer and diverted their scheming from him. He is the Hearer, the Omniscient.
[12:33] He said, "My Lord, the prison is better than giving in to them. Unless You divert their scheming from me, I may desire them and behave like the ignorant ones."
[12:35] Later, they saw to it, despite the clear proofs, that they should imprison him for awhile.