When the Kaaba was being built, the people were carrying stones and the Prophet ﷺ was carrying them along with them. He took his garment and placed it on his shoulder, but a voice called out, "Do not uncover your private area." So he threw down the stone and put his garment back on ﷺ.
حدثنا عبد الرزاق حدثنا معمر عن عبد الله بن عثمان بن خثيم
لما بني البيت كان الناس ينقلون الحجارة والنبي ﷺ ينقل معهم فأخذ الثوب فوضعه على عاتقه فنودي لا تكشف عورتك فألقى الحجر ولبس ثوبه ﷺ
Its isnad is sahih. It has already appeared at 14512, also narrated from Jabir.