 we never sent a messenger but that he should be obeyed by the leave of allah. if whenever they wronged themselves they had come to you praying to allah for forgiveness and had the messenger prayed for their forgiveness they would indeed have found allah allforgiving allcompassionate.
وما أرسلنا من رسول إلا ليطاع بإذن الله ولو أنهم إذ ظلموا أنفسهم جاءوك فاستغفروا الله واستغفر لهم الرسول لوجدوا الله توابا رحيما