Answer in Details
In Lord Shiva’s teachings and philosophy, His grace (anugraha) is considered ever available, but is especially drawn to sincere devotion, humility, and righteous living. The scriptures and Shaiva traditions suggest that Shiva bestows His grace when a devotee:
1.
Practices Bhakti (Devotion): Genuine love, worship, chanting of His names (like "Om Namah Shivaya"), and meditating upon Him are powerful ways to invite His grace.
2.
Leads a Pure Life: Following truth, non-violence, self-control, and compassion aligns one with Shiva’s ideals.
3.
Displays Detachment: Shiva is the supreme yogi, and detachment from worldly desires is seen as a path to attract His blessings.
4.
Seeks Self-Knowledge: Shiva encourages the pursuit of self-realization and understanding of the inner Self (Atman).
5.
Surrenders with Faith: Total surrender (Sharanaagati) and accepting both joy and sorrow as His will is said to please Shiva.
The Shiva Purana says:
"He who worships Shiva with a pure mind, and seeks Him sincerely, will surely be blessed by His compassionate glance."
Ultimately, Shiva’s grace is unconditional and beyond logic. With a pure heart and steadfast devotion, one naturally comes under His loving gaze.