The serenity prayer is based upon the writings of the Greek philosopher Epictetus (AD 55-AD 135). Here is a quote from wikipedia.com
o Epictetus, all external events are determined by fate, and are thus beyond our control, but we can accept whatever happens calmly and dispassionately. Individuals, however, are responsible for their own actions which they can examine and control through rigorous self-discipline. Suffering arises from trying to control what is uncontrollable, or from neglecting what is within our power... The person who followed these precepts would achieve happiness.
More information about text formats