Hafiz said this quote

Misery is the outcome of one's continuous negative evaluations of one's life.