[Machine] Imran ibn Hussain and Abu Barzah reported that they went out with the Messenger of Allah ﷺ for a funeral and saw people who had thrown away their cloaks and were walking in shirts. The Messenger of Allah ﷺ said, "Are you taking (the garment) by the deeds of ignorance or by an act? I intended to supplicate against you with a prayer that would make you return to your original state." So they took their cloaks and did not do that again.
عَنْ عِمْرَانَ بْنِ حُصَيْنٍ وَأَبِي بَرْزَةَ أَنَّهُمَا قَالَا خَرَجْنَا مَعَ رَسُولِ اللهِ ﷺ فِي جَنَازَةٍ فَرَأَى قَوْمًا قَدْ طَرَحُوا أَرْدِيَتَهُمْ يَمْشُونَ فِي خَمْصٍ فَقَالَ رَسُولُ اللهِ ﷺ «أَبِفِعْلِ الْجَاهِلِيَّةِ أَوْ بِصُنْعٍ تَأْخُذُونَ لَقَدْ هَمَمْتُ أَنْ أَدْعُوَ عَلَيْكُمْ دَعْوَةً تَرْجِعُونَ فِي غَيْرِ صُوَرِكُمْ» فَأَخَذُوا أَرْدِيَتَهُمْ وَلَمْ يَعُودُوا إِلَى ذَلِكَ