With regard to God, there is no strict right to any merit on the part of man. Between God and us there is an immeasurable inequality, for we have received everything from him, our Creator.
CCC 2011
The merit of man before God in the Christian life arises from the fact that God has freely chosen to associate man with the work of his grace. the fatherly action of God is first on his own initiative, and then follows man's free acting through his collaboration, so that the merit of good works is to be attributed in the first place to the grace of God, then to the faithful. Man's merit, moreover, itself is due to God, for his good actions proceed in Christ, from the predispositions and assistance given by the Holy Spirit.
Filial adoption, in making us partakers by grace in the divine nature, can bestow true merit on us as a result of God's gratuitous justice. This is our right by grace, the full right of love, making us "co-heirs" with Christ and worthy of obtaining "the promised inheritance of eternal life." (Council of Trent (1547): DSDenzinger-Schönmetzer, Enchiridion Symbolorum, definitionum et declarationum de rebus fidei et morum 1546) The merits of our good works are gifts of the divine goodness (Cf. Council of Trent (1547): DSDenzinger-Schönmetzer, Enchiridion Symbolorum, definitionum et declarationum de rebus fidei et morum 1548). "Grace has gone before us; now we are given what is due.... Our merits are God's gifts." (St. Augustine, Sermo 298, 4-5: PLPatrologia Latina (J. P. Migne) 38, 1367)
Since the initiative belongs to God in the order of grace, no one can merit the initial grace of forgiveness and justification, at the beginning of conversion. Moved by the Holy Spirit and by charity, we can then merit for ourselves and for others the graces needed for our sanctification, for the increase of grace and charity, and for the attainment of eternal life. Even temporal goods like health and friendship can be merited in accordance with God's wisdom. These graces and goods are the object of Christian prayer. Prayer attends to the grace we need for meritorious actions.
The charity of Christ is the source in us of all our merits before God. Grace, by uniting us to Christ in active love, ensures the supernatural quality of our acts and consequently their merit before God and before men. the saints have always had a lively awareness that their merits were pure grace.
After earth's exile, I hope to go and enjoy you in the fatherland, but I do not want to lay up merits for heaven. I want to work for your love alone.... In the evening of this life, I shall appear before you with empty hands, for I do not ask you, Lord, to count my works. All our justice is blemished in your eyes. I wish, then, to be clothed in your own justice and to receive from your love the eternal possession of yourself (St. Therese of Lisieux, "Act of Offering" in Story of a Soul, tr. John Clarke (Washington Dc: ICS, 1981), 277).
"We know that in everything God works for good with those who love him... For those whom he fore knew he also predestined to be conformed to the image of his Son, in order that he might be the first-born among many brethren. and those whom he predestined he also called; and those whom he called he also justified; and those whom he justified he also glorified." (Rom 8:28-30)
"All Christians in any state or walk of life are called to the fullness of Christian life and to the perfection of charity." (LGLumen gentium 40 # 2) All are called to holiness: "Be perfect, as your heavenly Father is perfect." (Mt 5:48)
In order to reach this perfection the faithful should use the strength dealt out to them by Christ's gift, so that... doing the will of the Father in everything, they may wholeheartedly devote themselves to the glory of God and to the service of their neighbor. Thus the holiness of the People of God will grow in fruitful abundance, as is clearly shown in the history of the Church through the lives of so many saints (LGLumen gentium 40 # 2).
Spiritual progress tends toward ever more intimate union with Christ. This union is called "mystical" because it participates in the mystery of Christ through the sacraments - "the holy mysteries" - and, in him, in the mystery of the Holy Trinity. God calls us all to this intimate union with him, even if the special graces or extraordinary signs of this mystical life are granted only to some for the sake of manifesting the gratuitous gift given to all.
The way of perfection passes by way of the Cross. There is no holiness without renunciation and spiritual battle (Cf. 2 Tim 4). Spiritual progress entails the ascesis and mortification that gradually lead to living in the peace and joy of the Beatitudes:
He who climbs never stops going from beginning to beginning, through beginnings that have no end. He never stops desiring what he already knows (St. Gregory of Nyssa, Hom. in Cant. 8: PGPatrologia Graeca (J. P. Migne) 44, 941C.).