The Sayings And Preaching of Al-Imam Ali (p.b.u.h)
Hadith n. 290
290. Amir al-mu’minin, peace be upon him, said: Even if Allah had not warned of chastisement on those disobedient to Him, it would be obligatory by way of gratefulness for His favours that He should not be disobeyed.
Hadith n. 291
291. Amir al-mu’minin, peace be upon him, said in condoling Ash’ath ibn Qays about (the death of) his son: O Ash’ ath, if you grieve over your son, certainly it is the consequence of the blood relationship; but if you endure, then Allah provides recompense for every affliction. O Ash’ath, if you endure even then matters will move on as ordained by Allah but in that case you will deserve reward; while if you lose patience, matters will again move as ordained by Allah, but in this case you will be bearing the burden (of sins). O Ash’ath, your son (when he lived) gave you happiness while, at the same time, he was a trial and hardship and (when he died) he grieved you while, at the same time, he has proved a source of reward and mercy for you.
Hadith n. 292
292. Amir al-mu’minin, peace be upon him, said on the grave of the Messenger of Allah, peace be upon him and his descendants, at the time of burial:
Certainly, endurance is good except about you; fretting is bad except over you; and the affliction about you is great while every other affliction before or after it is small.
Hadith n. 293
293. Amir al-mu’minin, peace be upon him, said: Do not associate with a fool because he will beautify his actions before you and long that you too be like him. 74
Source: https://www.al-islam.org/nahjul-balagha-part-2-letters-and-sayings