When David had grown old and had lived out his years, he made his son Solomon king of Israel.
He gathered all the officials of Israel and the priests and Levites.
Every male Levite who was at least 30 years old was counted. There were 38,000.
Of these, 24,000 were appointed to supervise the work on the LORD's temple, 6,000 were appointed to be officers and judges,
4,000 were appointed to be gatekeepers, and 4,000 were appointed to praise the LORD with the instruments David had made for praising God.
David organized the Levites into divisions based on which of Levi's sons (Gershon, Kohath, or Merari) they were descended from.
Ladan and Shimei were Gershon's descendants.
Ladan had three sons: Jehiel was the first, then Zetham, and Joel.
Shimei had three sons: Shelomith, Haziel, and Haran. They were the heads of Ladan's families.
Shimei's sons were Jahath, Zina, Jeush, and Beriah. They were Shimei's four sons.
Jahath was the first, and Ziza was the second. Jeush and Beriah didn't have many sons, so they were given an assignment as one family.
Kohath had four sons: Amram, Izhar, Hebron, and Uzziel.
Amram's sons were Aaron and Moses. Aaron and his sons were forever designated to dedicate the most holy things [to God], to offer sacrifices to the LORD, to serve him, and always give the blessing in his name.
The sons of Moses, the man of God, were counted with the tribe of Levi.
Moses' sons were Gershom and Eliezer.
Gershom's only son was Shebuel.
Eliezer's only son was Rehabiah. Eliezer had no other sons, but Rehabiah had many sons.
Izhar's only son was Shelomith.
Hebron's first son was Jeriah; his second was Amariah; his third was Jahaziel; his fourth was Jekameam.
Uzziel's first son was Micah; his second was Isshiah.
Merari's sons were Mahli and Mushi. Mahli's sons were Eleazar and Kish.
Eleazar died without having any sons. He only had daughters. Their cousins, the sons of Kish, married them.
Mushi had three sons: Mahli, Eder, and Jeremoth.
These were Levi's descendants, who were grouped according to their families. The heads of their families were registered by name as they were counted. Everyone who served in the LORD's temple was at least 20 years old.
David had said, "The LORD God of Israel has given his people rest. He will now live in Jerusalem forever.
The Levites will no longer have to carry the tent and all the utensils used in worship."
David's last instructions were to count the Levites who were at least 20 years old.
They were appointed to stand beside Aaron's descendants to serve in the LORD's temple. They were appointed to be in charge of the courtyards and the temple rooms, to ensure that all the holy things were clean, and to serve in God's temple.
They were also responsible for the rows of bread, the flour for the grain offerings, the unleavened bread wafers, and the bread made in frying pans. In addition, they were responsible for mixing the ingredients and keeping track of all weights and measures.
They were appointed to stand to give thanks and praise to the LORD every morning. They were appointed to do the same thing in the evening.
They were appointed to stand in front of the LORD in the required numbers whenever burnt offerings were made--on weekly worship days, at New Moon Festivals, and on appointed annual festivals.
They were appointed to follow the regulations for the tent of meeting and the holy place and to help their relatives, Aaron's descendants, as they served in the LORD's temple.