In Hanafi Fiqh, the knees of a man are exempt from his Aurah and can remain exposed during prayer.

Detailed Rulings on the Private Parts (حدود العورة) for Men/Women