The HOLY GHOST is particular in mentioning the names of the delinquents. It is awful when great names are only recorded, in order to particularize their greater shame and infamy.
Related Commentaries of Numbers 25:14
Numbers 25:14-15
14 Now the name of the Israelite that was slain, even that was slain with the Midianitish woman, was Zimri, the son of Salu, a prince of a chiefa house among the Simeonites.
15 And the name of the Midianitish woman that was slain was Cozbi, the daughter of Zur; he was head over a people, and of a chief house in Midian.