The hadith states that Prophet Musa (Moses) عليه السلام ran after a stone naked. This incident is against the dignity and greatness of a prophet; how can a prophet run naked? Also, the stone running ahead is against reason.
Accordingly, the hadith narrated from Abu Huraira, who reported from the Prophet ﷺ, states:
"The Children of Israel used to bathe naked in front of each other and look at one another, while Musa bathed alone. The Children of Israel said: By Allah! Musa does not bathe with us because he is afflicted with a hernia. One day, by chance, when Musa was bathing, he placed his clothes on a stone. It happened that the stone took his clothes and ran away. Prophet Musa ran after it saying: O stone! Give me my clothes. O stone! Give me my clothes. Until the Children of Israel saw Musa and said: By Allah! Musa has no illness. Prophet Musa took his clothes and began to hit the stone."
Abu Huraira said: By Allah! The six or seven marks of Musa's strike are still present on this stone.
Reference: (Sahih al-Bukhari: 278, 3404, Sahih Muslim: 339)
First Point
It should be understood that where there is a great harm, a lesser harm should be tolerated to avoid it. The defect attributed to Prophet Musa (peace be upon him) regarding manliness by the Children of Israel was worse and completely false, and since Prophet Musa (peace be upon him) was modest, Allah Almighty, through His perfect power and wise judgment, negated even one defect from Prophet Musa (peace be upon him) and also proved a miracle.
Second Point
It should also be known that in cases of necessity, permission is granted for certain impermissible things. In the Holy Quran, some forbidden items, such as carrion meat, are permissible to eat in cases of necessity. The incident of Prophet Musa (Moses) عليه السلام is also in a specific context, in which this was a form of defense from Allah against the lies and mockery directed at the Prophet.
Third Point
This incident is also present in the Bible, etc. The same objection should be raised against the Bible as well.
Fourth Point
This incident describes the miracle of Musa (peace be upon him). It is not correct to consider it objectionable because when people saw it, their intention and will were not involved beforehand; an event occurred, and people saw it. Neither was the intention and will of Musa (peace be upon him) involved, nor did he know that someone would see him. Since actions depend on intention and will, a person is not sinful without intention. Therefore, any fault can only be attributed to someone when their intention is involved.