Layth said that Mujahid said: "The exposure of the thigh in the mosque is part of the awrah (nakedness that must be covered)."