David gave these gifts to the Lord, just as he had done with the silver and gold he had captured from Edom, Moab, Ammon, Philistia, and Amalek.