Contradiction with 1 Samuel 8:7
This verse suggests that the people rejected God as their king, whereas 2 Samuel 5:2 acknowledges David as a leader chosen by God.
1 Samuel 8:7: And the LORD said unto Samuel, Hearken unto the voice of the people in all that they say unto thee: for they have not rejected thee, but they have rejected me, that I should not reign over them.
Contradiction with Hosea 13:11
This verse indicates God's displeasure with the appointment of a king, contrasting with the acceptance of David as king in 2 Samuel 5:2.
Hosea 13:11: I gave thee a king in mine anger, and took [him] away in my wrath.