This is the Tibetan Buddhist practice of Tonglen, a visualization of drawing in suffering and converting it to light and blessings.