Abstinence from Ejaculation

Patient :Hello, I wanted to ask if it's dangerous or harmful to abstain from ejaculation for an extended period of time? I'm referring to both masturbation abstinence and sex abstinence. I've heard of possible prostate issues but wanted to confirm with a legitimate doctor.
Thanks in advance

(*)
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.