Anas bin Malik reported,

The Messenger of Allah ﷺ set out on the expedition to Khaybar. We prayed the dawn prayer near it in the dim light before sunrise, then the Prophet of Allah ﷺ mounted, and Abu Talha mounted, and I rode behind Abu Talha. The Prophet of Allah ﷺ urged his mount through the alleys of Khaybar, and my knee was touching the thigh of the Prophet of Allah ﷺ. Then the lower garment slipped from his thigh until I could see the whiteness of the Prophet of Allah's thigh.When he entered the town he said, "Allah is the greatest! Khaybar is destroyed. When we descend upon the courtyard of a people, evil is the morning of those who were warned."

Azami 15381

Sahih

عن أنس

أن رسول الله ﷺ غزا خيبر، قال: فصلينا عندها صلاة الغداة بغلس، فركب نبي الله ﷺ، وركب أبو طلحة وأنا رديف أبي طلحة، فأجرى نبي الله ﷺ في زقاق خيبر، وإن ركبتي لتمس فخذ نبي الله ﷺ، ثم حسر الإزار عن فخذه حتى إني أنظر إلى بياض فخذ نبي الله ﷺ، فلما دخل القرية قال الله أكبر! خربت خيبر، إنا إذا نزلنا بساحة قوم فساء صباح المنذرين.

الأعظمي 15381صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Clothing and adornment
Chapter
Types of clothing and its colors
Section
Uncovering the thigh
Numbering
Jami al-Kamil 15381 (2nd edition)
Azami 15381