It is narrated from Hazrat Tamim Dari (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) forbade five things: keeping long hair, wearing shoes, sitting in mosques, staying behind the row, and wearing the upper garment and lower garment without underclothes.