Thank you for your query on Healthcare Magic.
Pain while urination could be due to urinary infection or chemical urethritis
Test urine for infection with routine urine examination and for culture and sensitivity.
Drink plenty of oral fluids and water.
If there is any infection in the urine, a course of antibiotics are required.
Therefore consult the doctor for examination and medication.
Hope I have answered your query.