It was narrated that ‘Imran bin Husain and Abu Barzah said: “We went out with the Messenger of Allah (peace be upon him) to attend a funeral, and he saw some people who had cast aside their upper sheets and were walking in their shirts only. The Messenger of Allah (peace be upon him) said: ‘Are you adopting the practice of the days of ignorance?’ or; ‘Are you imitating the behaviour of the days of ignorance? I was about to supplicate against you that you would return in a different form.’ So they put their sheets back on and never did that again.”
Sunnan Ibn Majah, Vol. 1, Book 6, Hadith 1552