Sunan Abi Dawud, Book 21, Hadith 52 (Abu Dawud 3141)

Narrated Ali ibn AbuTalib:

The Prophet (ﷺ) said: Do not unveil your thigh, and do not look at the thigh of the living and the dead.