Hazrat Mirza Ghulam Ahmadas, the Promised Messiah & Mahdi, Founder of the Ahmadiyya Muslim Jamaat, says:
“The fact is that true purity is attained only when one truly repents of a sinful life and strives to attain a life of piety, for which three conditions are required:
First, a solemn resolve and a concerted effort to get rid of sinful life as far as it lies in ones power.
The second condition is prayer; one should always beseech God that He may rid him of the sinful life with His own hand, and kindle such a fire in his heart as may reduce all evil to ashes, and grant him such power that he may be able to overcome all carnal passions. He should keep imploring God until the time comes when a Divine light descends upon his heart and a bright ray falls upon his being to dispel all darkness to eliminate his weaknesses and to bring about a righteous change in him, for prayer undoubtedly has great power. If the dead can be brought back to life it is only through prayer; if captives can win freedom it is only through prayer; if the impure are to be purified it can only be done through prayer. But to pray is akin to dying.
The third condition is to keep the company of the righteous and the perfect ones because one lamp lights another.
These are the only three ways of achieving emancipation from sin, and when these three conditions are met, they are ultimately blessed with Divine grace.” (Ruhani Khazain V. 20, p. 234) — READ in MALTESE