Allah mentions in the Quran the virtue of intending to be good, striving upon the path of goodness, and keeping to it. And because one treads upon this path, Allah increases their guidance, steadfastness, patience and piety. Whoever practices a good habit, Allah makes it easier for them. And whoever thanks Allah for what He has given, Allah gives them more in return.
“While as for those who accept guidance, He increases their guidance, and bestows on them their piety.” (Quran Surah Muhammad 47:17) And [remember] when your Lord proclaimed, ‘If you are grateful, I will surely increase you [in favor]; but if you deny, indeed, My punishment is severe.’ (Surah Ibraheem 14:7)
The Prophet peace be upon him said, “Whosoever would be chaste and modest, Allah will keep him chaste and modest, and whosoever would seek self-sufficiency (relying on no one but Allah), Allah will make him self-sufficient, and whosoever would be patient, Allah will give him patience. And no one is granted a gift better and more comprehensive than patience.” (Muttafaqun ‘alayh)
In another narration, the Messenger of Allah pbuh said: “Whoever wants to refrain from asking, Allah, the Mighty and Sublime, will help him to do so, and whoever wants to be patient, Allah will help him to be patient. No one is ever given anything better and more far-reaching than patience.” (Sunan an-Nasa’i 2588)