The Sufficient (Vol 3) · Hadith 633 (#Ḥadīth #1)
Chapter 38 | Expressions to Pronounce on Seeing a Dead Person
1ـ عَلِيُّ بْنُ إِبْرَاهِيمَ عَنْ أَبِيهِ عَنْ عَبْدِ الله بْنِ الْمُغِيرَةِ عَنْ أَبَانٍ لاَ أَعْلَمُهُ إِلاَّ ذَكَرَهُ عَنْ أَبِي حَمْزَةَ قَالَ كَانَ عَلِيُّ بْنُ الْحُسَيْنِ (عَلَيْهِما الْسَّلام) إِذَا رَأَى جَنَازَةً قَدْ أَقْبَلَتْ قَالَ الْحَمْدُ لله الَّذِي لَمْ يَجْعَلْنِي مِنَ السَّوَادِ الْمُخْتَرَمِ.
1. I do not know about him more of his name - from abu Hamzah who has said the following: “Ali ibn al-Husayn , on seeing a dead body brought near, would say, ‘All praise belongs to Allah who has not brought my life to an end.’”
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).