Quran 3:156 — The Amramites (Ali-'Imran)
O you who believe, do not be like those who disbelieved and said of their kinsmen who traveled or mobilized for war, "Had they stayed with us, they would not have died or gotten killed." GOD renders this a source of grief in their hearts. GOD controls life and death. GOD is Seer of everything you do.
[3:155] Surely, those among you who turned back the day the two armies clashed have been duped by the devil. This reflects some of the (evil) works they had committed. GOD has pardoned them. GOD is Forgiver, Clement.
[3:157] Whether you get killed or die in the cause of GOD, the forgiveness from GOD, and mercy are far better than anything they hoard.