When David arrived at his palace in Jerusalem, he took the ten concubines he had left to take care of the palace, and put them under guard. He provided for their needs, but did not have intercourse with them. They were kept confined for the rest of their lives, living like widows. 1
References for 2 Samuel 20:3
20.3 2 S 16.22.