Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Musa was a modest man who kept himself well covered, so that no part of his skin could be seen out of his bashfulness. Some of the Children of Israil hurt him by saying, 'He only covers himself this much because of some defect in his skin, either leprosy, a scrotal hernia, or some other affliction.' Allah willed to clear him of what they said about him.One day Musa went off alone, placed his clothes on a rock, and bathed. When he finished, he turned toward his clothes to take them, but the rock ran off with his garment. So Musa grabbed his staff and chased the rock, calling out, 'My clothes, rock! My clothes, rock!' until he reached a gathering of the Children of Israil. They saw him naked, the finest of Allah's creation, and Allah cleared him of what they had been saying. The rock then stopped, and Musa took his garment and put it on, and he set about striking the rock with his staff. By Allah, the rock still bears the marks from his blows, three or four or five of them.That is the meaning of His words, 'You who believe, do not be like those who hurt Musa. Allah cleared him of what they said, and he was honored in the sight of Allah' [Ahzab 33:69]."

Bukhari 3404

Sahih

حدثني إسحاق بن إبراهيم حدثنا روح بن عبادة حدثنا عوف عن الحسن ومحمد وخلاس

عن أبي هريرة رضي الله عنه قال

قال رسول الله ﷺ إن موسى كان رجلا حييا ستيرا لا يرى من جلده شيء استحياء منه فآذاه من آذاه من بني إسرائيل فقالوا ما يستتر هذا التستر إلا من عيب بجلده إما برص وإما أدرة وإما آفة وإن الله أراد أن يبرئه مما قالوا لموسى فخلا يوما وحده فوضع ثيابه على الحجر ثم اغتسل فلما فرغ أقبل إلى ثيابه ليأخذها وإن الحجر عدا بثوبه فأخذ موسى عصاه وطلب الحجر فجعل يقول ثوبي حجر ثوبي حجر حتى انتهى إلى ملإ من بني إسرائيل فرأوه عريانا أحسن ما خلق الله وأبرأه مما يقولون وقام الحجر فأخذ ثوبه فلبسه وطفق بالحجر ضربا بعصاه فوالله إن بالحجر لندبا من أثر ضربه ثلاثا أو أربعا أو خمسا فذلك قوله {يا أيها الذين آمنوا لا تكونوا كالذين آذوا موسى فبرأه الله مما قالوا وكان عند الله وجيها}

البخاري 3404صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Hadiths of the prophets
Chapter
Hadith of Khidr with Musa, peace be upon them
Numbering
Darussalam 3404
Bukhari 3404