Allaah (The Most High) said:
وَاعْلَمُوا أَنَّ فِيكُمْ رَسُولَ اللَّهِ لَوْ يُطِيعُكُمْ فِي كَثِيرٍ مِنَ الْأَمْرِ لَعَنِتُّمْ وَلَكِنَّ اللَّهَ حَبَّبَ إِلَيْكُمُ الْأِيمَانَ وَزَيَّنَهُ فِي قُلُوبِكُمْ وَكَرَّهَ إِلَيْكُمُ الْكُفْرَ وَالْفُسُوقَ وَالْعِصْيَانَ أُولَئِكَ هُمُ الرَّاشِدُونَ فَضْلاً مِنَ اللَّهِ وَنِعْمَةً وَاللَّهُ عَلِيمٌ حَكِيمٌ
And know that, among you there is the Messenger of Allah. If he were to obey you (i.e. follow your opinions and desires) in much of the matter, you would surely be in trouble, but Allah has endeared the Faith to you and has beautified it in your hearts, and has made disbelief, wickedness and disobedience (to Allah and His Messenger) hateful to you. These! They are the rightly guided ones, (This is) a Grace from Allah and His Favour. And Allah is All-Knowing, All-Wise. [Soorah al-Hujuraat: Ayah 7-8]
Imaam Ibnul Qayyim said:
Your love for Imaan, desire for it and its beautification in your hearts is not from yourselves; rather it is Allaah who placed it in your hearts. He is the one who made it preferable and pleasing to you; therefore do not put yourself before My Messenger-neither speak until he speaks nor act until he commands you. The one (i.e. Allaah) who made you love Imaan is the most knowledgeable concerning what is of benefit for His slaves than yourselves. And had it not been the Tawfeeq of Allaah upon you, your souls would not have yielded to Imaan. Imaan would not have been (acquired) through your consultation and bestowed from yourselves, nor would you have given it precedence because your souls are unable and weak to (do that), and cannot reach it….
[For further details, See ‘Madaarij As-Saalikeen 1/414—415]