All the messengers We sent were meant to be obeyed, by God’s leave. If only [the hypocrites] had come to you [Prophet] when they wronged themselves, and begged God’s forgiveness, and the Messenger had asked forgiveness for them, they would have found that God accepts repentance and is most merciful.
We sent not a messenger, but to be obeyed, in accordance with the will of Allah. If they had only, when they were unjust to themselves, come unto thee and asked Allah's forgiveness, and the Messenger had asked forgiveness for them, they would have found Allah indeed Oft-returning, Most Merciful.