Friedrich Schiller said this quote

Happy he who learns to bear what he cannot change.