Rangana Herath completed a five-wicket haul en route to dismissing 14 for the match to help ensure former Sri Lanka captain Mahela Jayawardene retires from test cricket with a 2-0 series sweep of Pakistan in the first session of final day Monday.
Sri Lanka won the second test by 105 runs after Pakistan was out for 165 in its second innings chasing 271 to win.
Herath, who took nine wickets in the first innings, finished with 14-184 to surpass his previous best match figures of 12-157 against Bangladesh last year.
Jayawardene ended his 149-match, 17-year test career with 11,814 runs at nearly 50 runs an innings.
Sri Lanka made 320 in the first innings and 282 in the second. Pakistan made with 332 and 165.