Waking up after being held back by urine penile distension and pain related to frequent erection or erection hardness caused by the urethral mucosa damage, if itself has prostatitis, urethritis, urinary stones and other diseases can also lead to pain. If you have had vigorous sex before going to bed or have had sex more frequently recently, it may cause damage to the urethral mucosa, and after waking up with urine, you may have a morning erection, which can aggravate the damage to the urethral mucosa leading to penile pain. If you have prostatitis or urethritis, it can lead to frequent urination, urinary urgency, urinary pain, and waking up with urine can also lead to penile pain. Stones at the end of the ureter or urethral stones, the movement of the stones during nighttime urination may cut through the urethral mucosa causing penile pain. Therefore, if the penis is swollen and painful when you hold your urine and cannot be relieved on your own, you need to go to the hospital to find out the specific cause of the disease and then give the appropriate treatment.