"Ibn Jarhad informed me from his father, that the Prophet (ﷺ) passed by him while his thigh was exposed, so the Prophet (ﷺ) said: 'Cover your thigh, for indeed it is 'Awrah.'"
Jami` at-Tirmidhi Book 43, Hadith 71