It is narrated from Sayyiduna Ali (may Allah be pleased with him) that he said: "The Prophet (peace and blessings be upon him) came in to me while my thigh was uncovered, and he (peace and blessings be upon him) said: 'O Ali! Cover your thigh, for it is part of the 'awrah (what must be covered).'"
Ishaq bin Rahwayh (may Allah have mercy on him) narrated this report through Rawh bin Ubadah (may Allah have mercy on him), from Abbad bin Mansur (may Allah have mercy on him), from Ikrimah bin Khalid (may Allah have mercy on him), from Habib (may Allah have mercy on him), from Asim (may Allah have mercy on him); and Rawh (may Allah have mercy on him) also narrated it from Ibn Jurayj (may Allah have mercy on him), from Habib (may Allah have mercy on him).