HAKIM 7361:
from Muḥammad b. Jaḥsh —
[Machine] He said that the Messenger of Allah ﷺ passed by him while he was with Ma'mar, with his thighs exposed. He said, "O Ma'mar, cover your thighs, for the thighs are 'awrah (to be covered)." It has also been narrated from Ali ibn Abi Talib and Abdullah ibn Abbas from the Prophet ﷺ , similar to it. Adh-Dhahabi did not mention it in his summarization.
الحاكم ٧٣٦١:
عن محمد بن جحسه —
أَنَّهُ قَالَ مَرَّ رَسُولُ اللَّهِ ﷺ وَأَنَا مَعَهُ عَلَى مَعْمَرٍ وَفَخِذَاهُ مَكْشُوفَتَانِ فَقَالَ «يَا مَعْمَرُ غَطِّ فَخِذَيْكَ فَإِنَّ الْفَخِذَيْنِ عَوْرَةٌ» وَقَدْ رُوِيَ عَنْ عَلِيِّ بْنِ أَبِي طَالِبٍ وَعَبْدِ اللَّهِ بْنِ عَبَّاسٍ عَنِ النَّبِيِّ ﷺ نَحْوُهُسكت عنه الذهبي في التلخيص
hadithunlocked.com