Answer in Details
It is natural to feel pain and disappointment when our desires are not fulfilled, even when we pray sincerely. In the teachings and philosophy surrounding Lord Shiva, desires and their outcomes are complex aspects of human experience.
Lord Shiva is often called "Bholenath," the innocent and easily pleased. Yet, he is also known as the great renunciate, "Vairagi," who encourages detachment and self-realization. Sometimes, when a wish is not granted, it may be due to reasons beyond our understanding. Shiva’s grace is not always in giving what we want, but often in guiding us towards what we truly need for our spiritual growth.
In the Shiva Purana and various Shiva-related texts, it is taught that pain, longing, and unfulfilled desires can become paths to deeper understanding. Lord Shiva himself sat in deep meditation, showing us the value of patience, detachment, and inner transformation. He teaches that true peace comes from surrendering our desires and accepting his divine will, trusting that he knows what is ultimately best for us, even if it is hard to understand in the moment.
If you are suffering, you can express your pain to Lord Shiva with an open heart. He is known for his compassion and listens to his devotees' prayers. You can chant the Mahamrityunjaya Mantra or simply meditate upon him, asking for strength and understanding, rather than just fulfillment of desires. Over time, you may find that his grace brings a deeper healing and peace than any specific wish could offer.
Remember, Lord Shiva loves all his devotees, and even in denial, there is his hidden grace—guiding you towards greater strength, wisdom, and inner peace.