all the messengers we sent were meant to be obeyed by gods leave. if they had come to you and sought forgiveness from god whenever they wronged themselves and the messenger had prayed for forgiveness for them they would have found that god is everforgiving and merciful.
وما أرسلنا من رسول إلا ليطاع بإذن الله ولو أنهم إذ ظلموا أنفسهم جاءوك فاستغفروا الله واستغفر لهم الرسول لوجدوا الله توابا رحيما