“The man who makes his religion a means to the gaining of this world, will lose both worlds alike; whereas the man who gives up this world for the sake of religion, will get both worlds alike.”
The Deliverance from Error https://www.amazon.com/Al-Ghazalis-Path-Sufism-Deliverance-al-Munqidh/dp/1887752307
Help us to complete the source, original and additional information
Abu Hamid al-Ghazali 37
Persian Muslim theologian, jurist, philosopher, and mystic 1058–1111Related quotes

"All Pervading Consciousness"
Context: Yet what are seas and what is air? For all
Is God, and but a talisman are heaven and earth
To veil Divinity. For heaven and earth,
Did He not permeate them, were but names;
Know then, that both this visible world and that
Which unseen is, alike are God Himself,
Naught is, save God: and all that is, is God.

“What profit it a man if he gain the whole world but in this enterprise lose his soul?”
Source: The Man in the High Castle
Dreamthorp: Essays written in the Country (1863).

“The world is divided into men who have wit and no religion and men who have religion and no wit.”
This was declared without citation to have been attributed to Avicenna in A Rationalist Encyclopaedia : A Book of Reference on Religion, Philosophy, Ethics, and Science (1950), by Joseph McCabe, p. 43; it was also later wrongly attributed to Averroes in The Atheist World (1991) by Madalyn Murray O'Hair, p. 46. It actually originates as a statement by the atheist Al-Maʿarri, earlier translated into English in A Short History of Freethought Ancient and Modern (1906) by John Mackinnon Robertson, Vol. I, Ch. VIII : Freethought under Islam, p. 269, in the form: "The world holds two classes of men ; intelligent men without religion, and religious men without intelligence."
Misattributed

Hotchkiss
1900s, Getting Married (1908)
Context: Religion is a great force — the only real motive force in the world; but what you fellows don't understand is that you must get at a man through his own religion and not through yours. Instead of facing that fact, you persist in trying to convert all men to your own little sect, so that you can use it against them afterwards. You are all missionaries and proselytizers trying to uproot the native religion from your neighbor's flowerbeds and plant your own in its place. You would rather let a child perish in ignorance than have it taught by a rival sectary. You can talk to me of the quintessential equality of coal merchants and British officers; and yet you can't see the quintessential equality of all the religions.

Speech at the Innauguration of the Aga Khan Baug, Versova, India (17 January 1983) http://ismaili.net/speech/s830117.html <!-- ***Source: Selection of Speeches: 1976-1984
Source: Africa Ismaili, XIV, 2 (July 1983), pp. 20-22
Source: American Ismaili, (July 11, 1983), pp. 15-16 -->
Context: There are those... who enter the world in such poverty that they are deprived of both the means and the motivation to improve their lot. Unless these unfortunates can be touched with the spark which ignites the spirit of individual enterprise and determination, they will only sink back into renewed apathy, degradation and despair. It is for us, who are more fortunate, to provide that spark.

Quoted in C.R. Leslie, Memoirs of the Life of John Constable, Composed Chiefly of His Letters (1843) (Phaidon, London, 1951) p. 273
posthumous, undated