Muslims must be pure before praying or any other act of worship requiring purity. Purification means the removal of any physical discharge from private parts that require washing, water sprinkling, or wiping.
Is it permeable to start the obligatory prayer after a person who is performing alone prayer (maybe Obligatory prayer, Sunnah, or a Nafela)? - Shiekh Assim Al-Hakeem.