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