Baruch Spinoza said this quote

Don’t cry and don’t rage. Understand.