Sura An-Nisaa

4:66

وَلَوْ أَنَّا كَتَبْنَا عَلَيْهِمْ أَنِ ٱقْتُلُوٓا۟ أَنفُسَكُمْ أَوِ ٱخْرُجُوا۟ مِن دِيَٰرِكُم مَّا فَعَلُوهُ إِلَّا قَلِيلٌۭ مِّنْهُمْ ۖ وَلَوْ أَنَّهُمْ فَعَلُوا۟ مَا يُوعَظُونَ بِهِۦ لَكَانَ خَيْرًۭا لَّهُمْ وَأَشَدَّ تَثْبِيتًۭا

Om Vi befallde dem att ge sina liv eller att överge sitt land, skulle bara ett fåtal av dem göra det; men det skulle vara för deras eget bästa om de gjorde vad de uppmanas att göra, och det skulle stärka deras tro.

Tafsir 4:66

If I had ordered them to kill one another or to leave their homes, then only a small number of them would have obeyed My instruction. So they should thank Me for not ordering them to do some¬ thing which would have been very difficult for them. If they had done what they were advised to do, it would have been better than going against the order, as well as being a stronger confirmation of their faith.