الآية رقم (156) - يَا أَيُّهَا الَّذِينَ آمَنُواْ لاَ تَكُونُواْ كَالَّذِينَ كَفَرُواْ وَقَالُواْ لإِخْوَانِهِمْ إِذَا ضَرَبُواْ فِي الأَرْضِ أَوْ كَانُواْ غُزًّى لَّوْ كَانُواْ عِندَنَا مَا مَاتُواْ وَمَا قُتِلُواْ لِيَجْعَلَ اللّهُ ذَلِكَ حَسْرَةً فِي قُلُوبِهِمْ وَاللّهُ يُحْيِـي وَيُمِيتُ وَاللّهُ بِمَا تَعْمَلُونَ بَصِيرٌ

(156) - {you who have believed, do not be like those who disbelieved and said about their brothers when they traveled through the land or went out to fight, "If they had been with us, they would not have died or have been killed," so Allah makes that [misconception] a regret within their hearts. And it is Allah who gives life and causes death, and Allah is Seeing of what you do.}

The hypocrites used to say to the believers that they had stayed with them, no harm would have touched them.

لَّوْ كَانُواْ عِندَنَا مَا مَاتُو{If they had been with us, they would not have died}: So they attribute death and life to causes, whereas death is related to the term, not to the causes, but you have to take the means and you are not allowed to throw yourself into death, in other words, you must not throw yourself in front of the train, and do not throw yourself off the roof of the building.

لِيَجْعَلَ اللّهُ ذَلِكَ حَسْرَةً فِي قُلُوبِهِمْ {so Allah makes that [misconception] a regret within their hearts}: They do not believe that death and life are in the hands of Allah (swt) and not in the hands of the causes, so believing that reasons are the causes of death, makes mourning is severe for the dead’s family.  You must believe that the term is over, and have to accept the pain as possible as Allah (swt) wanted.