There were two sources of safety during the time of the Messenger of Allah ﷺ. One has been lifted, and the other remains: "But Allah would not punish them while you are among them, nor would Allah punish them while they seek forgiveness" [Anfal 8:33].
حدثنا وكيع عن حرملة بن قيس عن محمد بن أبي أيوب
أمانان كانا على عهد رسول الله ﷺ رفع أحدهما وبقي الآخر {وما كان الله ليعذبهم وأنت فيهم وما كان الله معذبهم وهم يستغفرون}