The Yalkut Shimoni (Kohelet h. 9, 989) takes a rather singular (so-very-human) and shockingly mordant and unorthodox view of this and says that everything happens by chance, and that there’s no reason to say that the righteous should necessarily do well any more than there’s reason to say that the wrongful should necessarily do badly!
We’re sure the Midrash is only expressing (and lamenting) an often-felt but ill-advised perspective on things, but it’s still an astoundingly unexpected statement.
(c) 2014 Rabbi Yaakov Feldman
Feel free to contact me at email@example.com
AT LONG LAST! Rabbi Feldman’s translation of Maimonides’ “Eight Chapters” is available here at a discount.
You can still purchase a copy of Rabbi Feldman’s translation of “The Gates of Repentance” here at a discount as well.
Rabbi Yaakov Feldman has also translated and commented upon “The Path of the Just” and “The Duties of the Heart” (Jason Aronson Publishers).