When the Buddha taught how to put an end to suffering, he didn’t first ask people, “What karma did you do in the past that’s making you suffer right now? I’ll teach you only if you don’t have any bad karma.”
"The word “deserve” never appears in the Buddha’s teachings except for one thing — arahants deserve our respect and our generosity — but there’s nothing about people deserving to suffer. After all, when the Buddha taught how to put an end to suffering, he didn’t first ask people, “What karma did you do in the past that’s making you suffer right now? I’ll teach you only if you don’t have any bad karma.” If he had said that, he wouldn’t have had anybody to teach. He taught an end to suffering for all cases of suffering, whether it was “deserved” or not. So learn how to maintain a sense of well-being, and don’t listen to the thoughts that say you don’t deserve it." ~ Thanissaro Bhikkhu "Breath Teaches the Brahmaviharas"