Tafsir Ibn Kathir -> Surah An-Nisa -> The Necessity of Obeying the Messenger

Allah said,

﴿وَمَآ أَرْسَلْنَا مِن رَّسُولٍ إلاَّ لِيُطَاعَ﴾

(We sent no Messenger, but to be obeyed) meaning, obeying the Prophet was ordained for those to whom Allah sends the Prophet. Allah's statement,

﴿بِإِذُنِ اللَّهِ﴾

(by Allah's leave) means, "None shall obey, except by My leave,'' according to Mujahid. This Ayah indicates that the Prophets are only obeyed by whomever Allah directs to obedience. In another Ayah, Allah said,

﴿وَلَقَدْ صَدَقَكُمُ اللَّهُ وَعْدَهُ إِذْ تَحُسُّونَهُمْ بِإِذْنِهِ﴾

(And Allah did indeed fulfill His promise to you when you were killing them (your enemy) with His permission) meaning, by His command, decree, will and because He granted you superiority over them. Allah's statement,

﴿وَلَوْ أَنَّهُمْ إِذ ظَّلَمُواْ أَنفُسَهُمْ﴾

(If they (hypocrites), when they had been unjust to themselves,) directs the sinners and evildoers, when they commit errors and mistakes, to come to the Messenger , so that they ask Allah for forgiveness in his presence and ask him to supplicate to Allah to forgive them. If they do this, Allah will forgive them and award them His mercy and pardon. This is why Allah said,

﴿لَوَجَدُواْ اللَّهَ تَوَّاباً رَّحِيماً﴾

(they would have found Allah All-Forgiving (One Who forgives and accepts repentance), Most Merciful).