Another fundamental principle taught by the Law of Moses is this: Wrong cannot be ascribed to God in any way whatever; all evils and afflictions as well as all kinds of happiness of man, whether they concern one individual or a community, are distributed according to justice; they are the result of strict judgement that admits no wrong whatever.
Ch.17 - Guide for the Perplexed (c. 1190) - Part III