ANSWER:

Sweat doesn’t invalidate the wudu or salah. 

You can pray in that state, however it’s not appropriate to go to the masjid smelling of sweat and disturbing others. 

After you go to the gym to work out and you are all sweat, can you perform salat at that state or one is supposed to take ghusl.

Prayer |