Yes. The Serenity Prayer. I have it pasted in my journal, and pray it often. It's known mostly for what you posted here, but there is more. Here is the entire prayer. I think the additional words are very wise.
God, grant me the Serenity to accept the things I cannot change, the courage to change the things I can, and the wisdom to know the difference. Living one day at a time, enjoying one moment at a time; Accepting hardship as a pathway to peace; Taking, as Jesus did, this sinful world as it is; Not as I would have it; Trusting that you will make all thing right if i surrender to your will; So that I may be reasonably happy in this life and supremely happy with you forever in the next.