It is narrated from Sayyiduna Abbas (may Allah be pleased with him) that he said: "When Quraysh built the House (the Ka'bah), we used to carry stones to the House. Quraysh had formed teams of two men each who carried the stones, and the women carried the mortar (lime). My nephew and I were (together); we carried the stones on our necks, with our waist-wrappers under the stones (on our shoulders), and when people came near us we would put on our waist-wrappers. While I was walking, with Muhammad (peace and blessings be upon him) in front of me and no waist-wrapper on him (peace and blessings be upon him), he (peace and blessings be upon him) suddenly fell flat on his face. I came running and threw down my stone, while he (peace and blessings be upon him) was looking towards the sky. I said: 'What is the matter with you?' He (peace and blessings be upon him) got up, took his waist-wrapper and said: 'I have been forbidden from walking naked.' Sayyiduna Abbas (may Allah be pleased with him) said: I kept this matter hidden for fear that people would start calling (him) mad."
Qays bin al-Rabi' narrated it from Simak bin Harb.
And it has a supporting narration (shahid) in the two Sahihs (al-Bukhari and Muslim) through the narration of Amr bin Dinar from Sayyiduna Jabir bin Abdullah (may Allah be pleased with them both).