The Mystery of Reverse Ejaculation
Sometimes semen travels backward into the bladder instead of exiting the body. This happens when a internal muscle fails to close, causing the fluid to take the path of least resistance into the urinary system.
Normally, a specialized bladder muscle seals shut during ejaculation to ensure everything flows outward. If this muscle malfunctions, the semen is redirected, leaving the body only later when you urinate. Interestingly, this process has been studied as a method of male birth control. While it sounds alarming, the body simply processes the fluid as waste during the next bathroom visit.
Source: Retrograde ejaculation