I am a Catholic from Europe and recently heard a Muslim friend say that our earthly life would be a test before God. With this argument he explained the sense of fasting, giving alms, etc.
I have to say that I am very fascinated by this view of life as a test before God. Is there Catholic teaching on this point of view and if so what does it say?
Yes it’s a test. The bible exhorts us to choose good over evil, life over death, holiness and perfection over sin, God over no God. Adam chose the “no God” option, becoming his own “god” as he preferred
himself to God (CCC 398). We’re here to learn how wrong Adam was, how much we need God, to place Him first above all the other attractions that seek our love and devotion. This is a matter of justice, of the right order of things for man; creation must be subjugated to God and
man was made for communion with God but we can reject God
as our God by the abuse of free will.
Obedience and subjugation come only as we gain knowledge of the true God, the God whom Jesus came to finally, fully reveal when the time was ripe. As we accept this revelation we come to know Him and so begin to believe and hope/trust in Him and, most importantly, to love Him. To know Him
is to love Him.
"Now this is eternal life: that they know you, the only true God, and Jesus Christ, whom you have sent." John 17:3
And as we come to know and love God, ultimately loving Him with our whole heart, soul, mind and strength and our neighbor as ourselves, then our justice or righteousness is complete and our perfection and purpose would be attained and obedience would flow naturally, of its own accord. And this is why the Greatest Commandments are what they are. So the catechism teaches, regarding this struggle, a struggle of the will and proper use of our freedom:
1731 Freedom is the power, rooted in reason and will, to act or not to act, to do this or that, and so to perform deliberate actions on one’s own responsibility. By free will one shapes one’s own life. Human freedom is a force for growth and maturity in truth and goodness; it attains its perfection when directed toward God, our beatitude.
1732 As long as freedom has not bound itself definitively to its ultimate good which is God, there is the possibility of choosing between good and evil , and thus of growing in perfection or of failing and sinning. This freedom characterizes properly human acts. It is the basis of praise or blame, merit or reproach.
It’s both a test and a journey, a good and worthwhile journey, the most important journey of our existence.