While one who trust in GD sees everything He does as good, one who pretends to trust in GD congratulates himself for his successes and gets angry and blames GD for the seemingly bad
pg449
Nefesh Hachaim
We see that the Mitzvah of learning Torah is more precious to GD than any other mitzvah by the fact that even if one learns it for the wrong reasons or no reason at all he will still be fully rewarded in this world as well as in the next.
Prologue to gate Four, Chapter 2 pg 121