The 27-year-old paceman, who took 119 wickets in his 36-match Test career, said the thought had been on his mind for a while.
“It has not been an easy decision to make and I have been thinking about this for some time. But with the ICC World Test Championship commencing shortly, and Pakistan boasting some very exciting young fast bowlers, it is appropriate that I call on my time in Test cricket so that the selectors can plan accordingly,” he said.
“I want to thank all my team-mates as well the opponents in red ball cricket. It has been a privilege to play with and against them. I am sure our paths will continue to cross in limited-overs cricket as all of us play and compete with the same vigour and determination.
“I also want to thank the PCB for providing me the opportunity to don the golden star on my chest. And, I am grateful to my coaches who have groomed me at various stages of my career,” he added.
“Amir has been one of the most exciting and talented left-arm fast bowlers in Test cricket in recent times. He overcame adversity as a young cricketer and came back stronger not only as a cricketer but also as a better human being. His skill, on the field, and his personality will be missed in the dressing room in the longer format,” said PCB Managing Director Wasim Khan in a statement.
“However, we respect his decision and look forward to him continuing to play an integral role in white ball cricket for Pakistan.”
Amir made his Test debut against Sri Lanka in Galle in July 2009, he featured in 36 Tests, taking 119 wickets at an average of 30.47. His best bowling returns – six for 44 – were against the West Indies in Kingston in April 2017.