Whether prayer is meritorious?

Objections

Objection 1 : It would seem that prayer is not meritorious. All merit proceeds from grace. But prayer precedes grace, since even grace is obtained by means of prayer according to Lk. 11:13, "(How much more) will your Father from heaven give the good Spirit to them that ask Him!" Therefore prayer is not a meritorious act.
Objection 2 : Further, if prayer merits anything, this would seem to be chiefly that which is besought in prayer. Yet it does not always merit this, because even the saints' prayers are frequently not heard; thus Paul was not heard when he besought the sting of the flesh to be removed from him. Therefore prayer is not a meritorious act.
Objection 3 : Further, prayer is based chiefly on faith, according to James 1:6, "But let him ask in faith, nothing wavering." Now faith is not sufficient for merit, as instanced in those who have lifeless faith. Therefore prayer is not a meritorious act.