Yoram brought with him articles of silver, articles of gold and articles of bronze, which King David dedicated to The LORD, along with the silver and gold that he dedicated from all the nations he conquered —
I once heard a wise teaching that likened tithing to being an employee who gets 90% commission. That’s a great perspective on giving. David knew that his victories came only with Heaven’s help and so all his gain truly belonged to the Father. His dedication to give that wealth back is a beautiful illustration of that understanding.