1 David had become very old. So he made his son Solomon king over Israel.
2 He gathered together all of the leaders of Israel. He also gathered the priests and the Levites together.
3 The Levites who were 30 years old or more were counted. The total number of men was 38,000.
4 David said, "From them, 24,000 will direct the work of the Lord's temple. And 6,000 will be officials and judges.
5 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."
6 David separated the Levites into groups. He did it based on the sons of Levi. The sons were Gershon, Kohath and Merari.
7 Ladan and Shimei belonged to the family of Gershon.
8 The sons of Ladan were Jehiel, Zetham and Joel. Jehiel was the oldest son. The total number of sons was three.
9 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.
10 The sons of Shimei were Jahath, Ziza, Jeush and Beriah. The total number of the sons of Shimei was four.
11 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.
12 The sons of Kohath were Amram, Izhar, Hebron and Uzziel. The total number of sons was four.
13 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.
14 The sons of Moses, the man of God, were counted as part of the tribe of Levi.
15 The sons of Moses were Gershom and Eliezer.
16 Shubael was the oldest son in the family line of Gershom.
17 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.
18 Shelomith was the oldest son of Izhar.
19 Jeriah was the first son of Hebron. Amariah was his second son. Jahaziel was the third. Jekameam was the fourth.
20 Micah was the first son of Uzziel. Isshiah was his second son.
21 The sons of Merari were Mahli and Mushi. The sons of Mahli were Eleazar and Kish.
22 Eleazar died without having any sons. All he had was daughters. They got married to their cousins. The cousins were the sons of Kish.
23 The sons of Mushi were Mahli, Eder and Jerimoth. The total number of sons was three.
24 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.
25 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.
26 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."
27 The Levites who were 20 years old or more were counted. That was in keeping with David's final directions.
28 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.
29 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.
30 They stood every morning to thank and praise the Lord. They did the same thing every evening.
31 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.