Buddhism holds that good and evil are both repaid, and that everything we meet comes from what we ourselves have done.
Tips
history
A Buddhist idea at root: whoever acts bears the fruit. The Song-dynasty 《五灯会元》 has a monk asking who must carry a huge iron cangue, and the master answering 自作自受.