And if a change of religion could be justified for worldly betterment, I would advise it without hesitation. But religion is a matter of the heart. No physical inconvenience can warrant abandonment of one's own religion.
 Mahatma Gandhi, Freedom's Battle Being a Comprehensive Collection of Writings and Speeches on the Present Situation (1922). copy citation

add
Author Mahatma Gandhi
Source Freedom's Battle Being a Comprehensive Collection of Writings and Speeches on the Present Situation
Topic religion abandonment
Date 1922
Language English
Reference
Note
Weblink http://www.gutenberg.org/files/10366/10366-h/10366-h.htm

Context

“To-day there is no more discontented community in India than the Sikhs. Government aid is therefore no solution.
The second is rejection of Hinduism and wholesale conversion to Islam or Christianity. And if a change of religion could be justified for worldly betterment, I would advise it without hesitation. But religion is a matter of the heart. No physical inconvenience can warrant abandonment of one's own religion. If the inhuman treatment of the Panchamas were a part of Hinduism, its rejection would be a paramount duty both for them and for those like me who would not make a fetish even of religion and condone every evil in its sacred name.” source