Al-Kāfi

Hadith 2187
etiquette
11ـ مُحَمَّدُ بْنُ يَحْيَى عَنْ مُحَمَّدِ بْنِ الْحُسَيْنِ رَفَعَهُ قَالَ كَانَ أَبُو عَبْدِ الله (عَلَيهِ السَّلام) يَقُولُ ثَلاثَةٌ لا يُسَلَّمُونَ الْمَاشِي مَعَ الْجَنَازَةِ وَالْمَاشِي إِلَى الْجُمُعَةِ وَفِي بَيْتِ الْحَمَّامِ.
11. Muhammad ibn Yahya has narrated from Muhammad ibn al-Husayn in a marfu’ manner from an Imam who has said the following: “Abu ‘Abd Allah (a.s.) would say, ‘Three kinds of people do not offer greetings: one walking in funeral procession, one walking to attend Friday prayer and in the bathing places.’”
Source: Shaykh Muḥammad b. Yaʿqūb al-Kulaynī