There is an idea based on the central tantric notion, found from Sufism to Buddhism, that if you enter a lower state or even a defiled state with clear awareness, then that state will transform into its corresponding wisdom. So if you enter passion with awareness, you will find compassion. If you enter anger with awareness, you will find clarity. And so on.

Ken Wilber, The Road Within by Sean O'Reilly, editor, James O'Reilly, editor, Tim O'Reilly, editor