Leviticus 19:26-31 deals with pagan practices and God's prohibitions against adopting those practices. In verse 28, God is warning the Jewish people about a pagan practice at funerals, where pagans would mutilate/mark themselves to appease their false gods. The pagans hoped that by cutting themselves and marking images/symbols of idols on their bodies, that they would obtain favour in the afterlife from their false gods, both for themselves and for those who just died.