Many people can be affected by bad/illicit thoughts and temptations and you're not alone in that.
We should remember that the conditions of our heart (desires, temptations, thoughts etc.) do indeed influence the way we think and act. Its through our heart that we are tempted to do sins. Allah says in Surah an-Naas:
Say, “I seek refuge in the Lord of ...
ALLAH will never ask you about something you never do.
عن أبي عبد الله الصادق(ع): "إنّ المؤمن ليهمّ بالحسنة ولا يعمل بها
فتكتب له حسنة، وإنْ هو عملها كتبت له عشر حسنات، وإن المؤمن ليهمّ
بالسيئة أن يعملها فلا يعملها فلا تكتب عليه" (الكافي ج2 ص429)
Abu Abdullah al-Sadiq (AS): "The believer does not matter with good
works is recorded him well, ...
A rather general statement, saying that everything comes from Allah (especially guidance), can be found in several verses of the Qur'an like:
And whatever you have of favor - it is from Allah . ... (16:53)
Let's start with mercy, first a quote from the qur'an:
... "but My mercy encompasses all things" ... (7:156)
So it is Allah's mercy that ...
The premises of your question are objectionable.
Religious people may give out for Divine reward, but they also give out because religion teaches them to practice compassion and charity. Religion tells them that they make up one family descending from Adam and Eve, and together they are like brothers and sisters; that they must be concerned for one another....
First of all when it comes to the fiqh ruling on treatment scholars hold different opinions:
Most scholars or a majority out of them say it is permissible (not obligatory).
The shafi'is and some hanabalis say it is mustahabb (recommended).
The majority of the hanbalis even say that leaving it is better.
In case that the treatment or medicament has been ...
Indeed, those who fear Allah - when an impulse touches them from
Satan, they remember [Him] and at once they have insight.
Whoever comes [on the Day of Judgement] with a good deed will have ten
times the like thereof [to his credit], and whoever comes with an evil
deed will not be recompensed except the like thereof; ...