Pakistani cricketer Shahid Khan Afridi has advised cricket team captain Sarfraz Ahmed that he should retire from the test format.