While not an ancient prayer, it is a teaching from Ignatius of Loyola reminding us that every choice that we make should lead us to the praise of God our Lord.
“In every good choice, in so far as it depends upon us, the direction of our intention should be simple. I must look only to the end for which I am created, that is, for the praise of God our Lord and for the salvation of my soul. Therefore, whatever I choose must have as its purpose to help me to this end. I must not shape or draw the end to the means, but the means to the end. Many, for example, . . . first desire to have benefices (church offices with a guaranteed income), and afterward to serve God in them. These individuals do not go straight to God, but want God to come straight to their inordinate attachments. Acting thus, they make a means of the end, and an end of the means, so that what they ought to seek first, they seek last. My first aim, then, should be my desire to serve God, which is the end, and after this, to seek a benefice . . . if it is more fitting for me, for these things are but means to the end. Thus, nothing should move me to use such means or to deprive myself of them except it be only the service and praise of God our Lord and the eternal salvation of my soul.”Ignatius of Loyola