Nahj al-Balāgha

Hadith 1864
prophet-muhammaddeathtrials-afflictions
إِنَّ الصَّبْرَ لَجَمِيلٌ إِلَّا عَنْكَ، وَإِنَّ الْجَزَعَ لَقَبِيحٌ إِلَّا عَلَيْكَ، وَإِنَّ الْمُصَابَ بِكَ لَجَلِيلٌ، وَإِنَّهُ قَبْلَكَ وَبَعْدَكَ لَجَلَلٌ.
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.
Source: al-Sharīf al-Raḍī