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.
— Abdul Haleem
And We did not send any messenger except to be obeyed by permission of Allah. And if, when they wronged themselves, they had come to you, [O Muḥammad], and asked forgiveness of Allah and the Messenger had asked forgiveness for them, they would have found Allah Accepting of Repentance and Merciful.
— Saheeh International