2 Samuel 14:28

So Absalom dwelt two full years in Jerusalem, and saw not the king’s face.

Cross-reference

14:24 set the condition that Absalom could live in Jerusalem but not see David's face; 14:28 records the two-year fulfillment of that ban.