Now a troublemaker named Sheba son of Bicri, a Benjamite, happened to be there. He sounded the trumpet and shouted, "We have no share1 in David,2 no part in Jesse's son!3 Every man to his tent, O Israel!"
References for 2 Samuel 20:1
So all the men of Israel deserted David to follow Sheba son of Bicri. But the men of Judah stayed by their king all the way from the Jordan to Jerusalem.
When David returned to his palace in Jerusalem, he took the ten concubines4 he had left to take care of the palace and put them in a house under guard. He provided for them, but did not lie with them. They were kept in confinement till the day of their death, living as widows.
References for 2 Samuel 20:3