No I've never been asked about masturbation
However, once about 10 years ago, when I was travelling, I had a fever and burning while passing urine.
The hotel doctor asked about my sex life. How many times a week I had sex. Leading to the next question about whether I had sex with multiple partners.
I had not had sex with anyone for over a month and had no other option but to gratify myself.
I just told him that I usually had a healthy sex life, but only with my wife. However, I had been out of home for the past 30 days.
He nodded his head and decided it was an infection and just prescribed a course of antibiotics.
Capsules, sadly.
"Would I need injections?" I had asked, hopefully, though I must've sounded anxious.
"No need. These capsules are good enough." The chap had said and pushed off.
The hotel desk arranged for the medication
I had hoped he would give me at least one injection - a full course would have been first prize...but then life has its tragedies!