back home we have something called a Serenity Prayer that states just what you have said...it goes...

God grant me the serenity
to accept the things I cannot change;
courage to change the things I can;
and wisdom to know the difference.