The Messenger of Allah ﷺ said, "Visit the sick and follow funeral processions, for they will remind you of the Hereafter."
حدثنا وكيع حدثنا همام عن قتادة عن أبي عيسى الأسواري
قال رسول الله ﷺ عودوا المريض واتبعوا الجنازة تذكركم الآخرة
Its isnad is sahih. Hammam is Ibn Yahya Awdhi, the trustworthy hadith master, and Abu Isa Aswari is trustworthy, as mentioned previously. The hadith has already appeared at 11125.