“Demand not that events should happen as you wish; but wish them to happen as they do happen, and you will go on well.”
Epictetus wrote this in The Enchiridion, first published in 125. It appears in Section VIII. The English is Thomas Wentworth Higginson’s translation from the Ancient Greek.