Saadi said this quote

The rose and the thorn, and sorrow and gladness are linked together.