The eminent Muslim scholar and renowned Da`iyah, Sheikh `Abdel Khaliq Hasan Ash-Shareef, states: “It should be clear, first of all, that getting up after sleeping does not necessitate wudu’ or ghusl (purificatory bath). However, a Muslim is required to perform wudu’ before going for prayer. He/she is required to perform ghusl if he/she has done or found anything that necessitate ghusl.
So, he/she has to specify this water whether it is urine, madhi, or semen.
If it is urine, then he/she has to purify it and make wudu’. If it is madhi, he/she is only required to purify it and make wudu for prayer. But it is seminal discharge, then he/she is required to make ghusl to be eligible for prayer. So, the whole issue depends on the nature of this discharge one sees after getting up.