Thanks for your query.
This is highly difficult that you are not passing urine at all.
If this is of a recent origin, it indicates that a stone is impacted somewhere in the urethra.
I would advise you the following:
Rush to ER.
Get clinically examined and investigated by X-ray and ultrasonography.
You need an urgent treatment for inability to pass urine with penis filling with urine and getting hard.
I hope this answer helps you to get an early diagnosis and treatment
These Q&A’s are for educational purposes and should not be relied upon as a substitute for medical advice you may receive from your physician. If you have a medical emergency, please call 911. These answers do not constitute or initiate a patient/doctor relationship.