
This appears to have been originally written by John Briley in the screenplay http://www.dailyscript.com/scripts/Gandhi.txt for the movie, Gandhi (1982), spoken by Ben Kingsley, playing Gandhi. The earliest [partial] misattribution to Gandhi appears to be by Ronald Reagan in an address http://www.nytimes.com/1984/09/25/world/transcript-of-reagan-s-address-to-the-un-general-assembly.html?pagewanted=all to the United Nations General Assembly on 24 September 1984 (also a misquotation, substituting the word fail for fall). John S. Dunne misattributes the first sentence in The Peace of the Present (1991) on p. 50 https://books.google.com/books?id=NYIJAAAAIAAJ&q=%22when+Gandhi+says%22+%22When+I+despair,+I+remember+that+all+through+history+the+way+of+truth+and+love+has+always+won.%22&dq=%22when+Gandhi+says%22+%22When+I+despair,+I+remember+that+all+through+history+the+way+of+truth+and+love+has+always+won.%22&hl=en&sa=X&ved=0ahUKEwjhufXN09LWAhWG7SYKHbRdCJ0Q6AEIJzAA, just after misattributing the same first two sentences that Reagan did. Dunne also misattributes the final part of the quotation in the same book on p. 34 https://books.google.com/books?id=NYIJAAAAIAAJ&q=%22Think+of+it+%E2%80%94+always%E2%80%A6%22+%22When+you+are+in+doubt+that+that+is+God%27s+way,+the+way+the+world+is+meant+to+be%E2%80%A6+think+of+that.%22&dq=%22Think+of+it+%E2%80%94+always%E2%80%A6%22+%22When+you+are+in+doubt+that+that+is+God%27s+way,+the+way+the+world+is+meant+to+be%E2%80%A6+think+of+that.%22&hl=en&sa=X&ved=0ahUKEwjEw57e1tLWAhUSdiYKHUNiA2kQ6AEIMTAC.
Misattributed
Context: When I despair, I remember that all through history the way of truth and love has always won. There have been tyrants and murderers, and for a time they can seem invincible. But in the end they always fall. Think of it—always… When you are in doubt that that is God's way, the way the world is meant to be… think of that.