ثُمَّ بَعَثْنَاكُم مِّن بَعْدِ مَوْتِكُمْ لَعَلَّكُمْ تَشْكُرُونَ
Summa ba'asnaakum mim ba'di mawtikum la'allakum tashkuroon
Then we raised you up after your death, so that you might give thanks.
Baʿth, the verb used for this raising, is the ordinary Qur'anic word for resurrection at the end of time, applied here to something happening inside history. So the passage supplies a small instance of the thing it will spend the rest of the surah arguing for. The stated purpose is thanks, which places the episode among the favours being recited rather than among the punishments.