1 Samuel 22:2

2 All those who were in distress or in debt or discontented gathered around him, and he became their commander. About four hundred men were with him.

Read 1 Samuel 22:2 Using Other Translations

And every one that was in distress, and every one that was in debt, and every one that was discontented, gathered themselves unto him; and he became a captain over them: and there were with him about four hundred men.
And everyone who was in distress, and everyone who was in debt, and everyone who was bitter in soul, gathered to him. And he became captain over them. And there were with him about four hundred men.
Then others began coming—men who were in trouble or in debt or who were just discontented—until David was the captain of about 400 men.