Sure Al-Baqara

2:243

۞ أَلَمْ تَرَ إِلَى ٱلَّذِينَ خَرَجُوا۟ مِن دِيَٰرِهِمْ وَهُمْ أُلُوفٌ حَذَرَ ٱلْمَوْتِ فَقَالَ لَهُمُ ٱللَّهُ مُوتُوا۟ ثُمَّ أَحْيَٰهُمْ ۚ إِنَّ ٱللَّهَ لَذُو فَضْلٍ عَلَى ٱلنَّاسِ وَلَٰكِنَّ أَكْثَرَ ٱلنَّاسِ لَا يَشْكُرُونَ

Siehst du nicht jene, die, um dem Tod zu entfliehen, zu Tausenden aus ihren Wohnstätten hinauszogen? Da sagte Allah zu ihnen: "Sterbt!" Hierauf machte Er sie wieder lebendig. Allah ist wahrlich voll Huld gegen die Menschen. Aber die meisten Menschen sind nicht dankbar.

Tafsir 2:243

Do you not know, O Prophet, about those who left their homes in huge numbers fearing death due to the plague or something similar? This refers to a group of people from the Israelites. Allah said to them, ‘Die!’ and they did. Then Allah brought them back to life to show them that everything is in His Hands and that they have no control over any benefit or harm. Allah is Gracious and Bountiful to people, but most people are ungrateful for His favours.