“The Prophet (ﷺ) said to me: ‘Do not show your thigh, and do not look at the thigh of anyone, living or dead.’”
Sunan Ibn Majah Book 6, Hadith 28