The phrase 'have you ever asked yourself' is correct and usable in written English. You can use it when you want to ask a person to consider if they've ever wondered about something. For example: "Have you ever asked yourself why your life always feels so chaotic?".
Have you ever asked yourself, Would it be better never to have been born?
"And now we come to the last commandment: 'Don't covet other people's stuff.' But have you ever asked yourself why this commandment exists, when you've already got 'Don't steal'?
Surrounded by benevolent zombies, Simón plaintively demands, "Have you ever asked yourself whether the price we pay for this new life, the price of forgetting, may not be too high?" He is the only person to rage against the loss of a fuller humanity: "When we have annihilated our hunger, you say, we will have proved we can adapt, and we can be happy for ever after.
Have you ever asked yourself what harm it would be to take just one more postdoc in an area you think you might like to learn a little bit about, just for fun?
Have you ever asked him?
Q. Have you ever asked him about it?
METATRON: Have you ever asked him if he had?
When I feel like I can't trust my brain 100%, Ludwig really comes in handy. It makes me translate and proofread faster and my output more reliable.
Claudia Letizia
Head Translator and Proofreader @ organictranslations.eu