True ecstasy is passive: it overwhelms the heart without any intention or deliberate effort.
It is the fruit of spiritual devotion and worship.
The deeper is your devotion to God, and the more intense is your worship, the more likely you are to receive ecstasy from God.
In a state of ecstasy the heart is lost to God.
-Qushayri, "Risalah"