David then divided the Levites into three groups according to the clans of Levi's sons, Gershon, Kohath, and Merari.