1 Chronicles 12:18

12:18 But a spirit empowered Amasai, the leader of the thirty warriors, and he said:

“We are yours, O David!

We support you, O son of Jesse!

May you greatly prosper!

May those who help you prosper!

Indeed your God helps you!”

So David accepted them and made them leaders of raiding bands.

1 Chronicles 24:31

24:31 Just like their relatives, the descendants of Aaron, they also cast lots before King David, Zadok, Ahimelech, the leaders of families, the priests, and the Levites. The families of the oldest son cast lots along with the those of the youngest.