This is an example of divine providence. According to Stanford Encyclopedia of Philosophy, Divine Providence is a traditional theism that holds that God is the creator of heaven and Earth. In which all that takes place in the Earth is called Divine Providence- which is under God's sovereign guidance and control. This is a notion that no matter how bad something's going if you keep faith in God, he will in turn bless you. We see this in the highlighted text because this an example of how they came over a hardship through the grace of God. This young man condemned and curse the poor people because of their sickness, and in return died from a painful disease in which he was thrown overboard.
McCann, Hugh J. and Daniel M. Johnson, "Divine Providence", The Stanford Encyclopedia of Philosophy (Spring 2017 Edition), Edward N. Zalta (ed.), URL = https://plato.stanford.edu/archives/spr2017/entries/providence-divine/