Narrated Jabir bin `Abdullah
When the Ka`ba was rebuilt, the Prophet (ﷺ) and `Abbas went to carry stones. `Abbas said to the Prophet (ﷺ) "(Take off and) put your waist sheet over your neck so that the stones may not hurt you." (But as soon as he took off his waist sheet) he fell unconscious on the ground with both his eyes towards the sky. When he came to his senses, he said, "My waist sheet! My waist sheet!" Then he tied his waist sheet (round his waist).
Narrated `Amr bin Dinar and 'Ubaidullah bin Abi Yazid
In the lifetime of the Prophet (ﷺ) there was no wall around the Ka`ba and the people used to pray around the Ka`ba till `Umar became the Caliph and he built the wall around it. 'Ubaidullah further said, "Its wall was low, so Ibn Az-Zubair built it."