If a person performs Wudu but forgets to wash his limbs and prays, the prayer is valid because he omitted it out of forgetfulness.

Conditions of Prayer (شروط الصلاة) Part 1: Purity and Aura