Hi there ~
I understand your concern and penis hurting while urinating may be due to a urinary tract infection
(UTI) or due to a sexually transmitted disease
). In either case you would have to visit a doctor. If testing i.e. screening for STDs are normal and you do not have a UTI either you might have a benign or a malignant urological condition for which you need to visit with a urologist
. I hope this helps. Also drinking water, lots of water, everyday may be the only solution you are looking for. Take care and have a lovely day!