Punishment Or Test
Ghamidi Sahab has explained this point in the following video. Please refer to the video below from 6:38 to 8:54 and from 17:23 to 22:19 https://youtu.be/qpmDBHHKzVE?si=Z-Pgr_HavUusU5N9&t=398