O my God, I love thee above all things, with my whole heart and soul, because thou art all good and worthy of all love. I love my neighbor as myself for the love of thee. I forgive all who have injured me, and ask pardon of all whom I have injured. Amen.
Source of the text: Traditional Act of Charity from Catholic catechisms.
How and when to pray it
Pray it with the Acts of Faith and Hope. The line about forgiving people who have injured you is part of the prayer. Do not skip it on the days it costs something.
Charity here means love, not a donation. Almsgiving can follow the prayer. The prayer itself is the love.
Where this prayer comes from
Catechisms placed this act beside faith and hope so that love would be explicit. The resolve to forgive is in the traditional text, not an addition.
The Douay-Rheims of First Corinthians 13:13, printed below, says that faith, hope, and charity remain, and the greatest of these is charity.
A verse from the Douay-Rheims
And now there remain faith, hope, and charity, these three: but the greatest of these is charity.
Douay-Rheims, 1 Cor 13:13
A saint tied to this prayer: St. Elizabeth of Hungary, November 17.