David had become very old. So he made his son Solomon king over Israel.
He gathered together all of the leaders of Israel. He also gathered the priests and the Levites together.
The Levites who were 30 years old or more were counted. The total number of men was 38,000.
David said, "From them, 24,000 will direct the work of the LORD's temple. And 6,000 will be officials and judges
Another 4,000 will guard the gates. And 4,000 will praise the LORD with the instruments of music I've provided for that purpose."
David separated the Levites into groups. He did it based on the sons of Levi. The sons were Gershon, Kohath and Merari.
Ladan and Shimei belonged to the family of Gershon.
The sons of Ladan were Jehiel, Zetham and Joel. Jehiel was the oldest son. The total number of sons was three.
The sons of Shimei were Shelomoth, Haziel and Haran. The total number of sons was three. They were the leaders of the families of Ladan.
The sons of Shimei were Jahath, Ziza, Jeush and Beriah. The total number of the sons of Shimei was four.
Jahath was the first son. Ziza was the second son. But Jeush and Beriah didn't have many sons. So they were counted as one family. They had only one task.
The sons of Kohath were Amram, Izhar, Hebron and Uzziel. The total number of sons was four.
Aaron and Moses belonged to Amram's family line. Aaron and his family line were set apart forever as the LORD's priests. They had the duty of setting the most holy things apart to the Lord. They offered sacrifices to the Lord. They served him. They gave blessings in his name forever.
The sons of Moses, the man of God, were counted as part of the tribe of Levi
The sons of Moses were Gershom and Eliezer.
Shubael was the oldest son in the family line of Gershom.
Rehabiah was the oldest son in the family line of Eliezer. Eliezer didn't have any other sons. But Rehabiah had a great many sons.
Shelomith was the oldest son of Izhar.
Jeriah was the first son of Hebron. Amariah was his second son. Jahaziel was the third. Jekameam was the fourth
Micah was the first son of Uzziel. Isshiah was his second son.
The sons of Merari were Mahli and Mushi. The sons of Mahli were Eleazar and Kish
Eleazar died without having any sons. All he had was daughters. They got married to their cousins. The cousins were the sons of Kish.
The sons of Mushi were Mahli, Eder and Jerimoth. The total number of sons was three.
Those were the family lines of Levi. They were recorded under the names of the family leaders. Each worker who was 20 years old or more was counted. They served in the LORD's temple.
David had said, "The LORD is the God of Israel. He has given peace and rest to his people. He has come to Jerusalem to live there forever.
So the Levites don't need to carry the holy tent anymore. They don't need to carry any of its articles anymore. Those were the articles that were used to serve there."
The Levites who were 20 years old or more were counted. That was in keeping with David's final directions.
The Levites had the duty of helping the members of Aaron's family line. They helped them serve in the LORD's temple. They were in charge of the courtyards and the side rooms. They made all of the sacred things pure and clean. They also had other duties at the house of God.
They were in charge of setting the holy bread out on the table. They prepared the flour for the grain offerings. They made the wafers without using any yeast. They did the baking and the mixing. They measured the amount and size of everything.
They stood every morning to thank and praise the Lord. They did the same thing every evening.
They also did it every time burnt offerings were brought to the Lord. Those offerings were brought every Sabbath day. They were also brought at every New Moon Feast and during the appointed yearly feasts. The Levites served in front of the LORD at regular times. The proper number of Levites was always used when they served. They served in the way the law required of them.
So the Levites carried out their duties for the Tent of Meeting and for the Holy Room. They worked under their relatives who were in the family line of Aaron. They helped them serve at the LORD's temple.