From which book of the Bible is the following verse?

"So when all Israel saw that the king listened not to them, the people answered the king, saying, What portion have we in David? neither have we inheritance in the son of Jesse: to your tents, O Israel: now see to your own house, David. So Israel departed to their tents"