Shami announced his decision in an emotional post on his X handle, exactly 13 years after making his Test debut.
The Indian pacer played 64 Tests, claiming 229 wickets at an average of 27.71. He finishes as India's sixth-most successful fast bowler in Test cricket, having delivered several notable performances in challenging conditions.
Shami to continue in white-ball cricket
Although Shami has called time on his Test career, he plans to continue playing white-ball cricket, including the Indian Premier League (IPL) and domestic competitions.
In his retirement message, the 36-year-old thanked his teammates, coaches, family, the Board of Control for Cricket in India (BCCI), the Cricket Association of Bengal (CAB) and fans for supporting him throughout his journey, including during injury setbacks and comebacks.
'Test cricket has been more than just a format for me'
Sharing his decision on X, Shami wrote: "I’m leaving behind the white jersey, but never the memories tied to it… When I first wore India’s Test jersey, I had just one dream — to do something for my country. Since then, every wicket, every struggle, every injury and every comeback has taught me something.
"Test cricket has been more than just a format for me; it has been an incredibly special part of my life. Today, with a heavy heart and countless beautiful memories, I am deciding to retire from Test cricket."
Safed jersey se vida le raha hoon, lekin usse judi yaadon se kabhi nahi… 🇮🇳❤️ Jab pehli baar Bharat ki Test jersey pehni thi, tab sirf ek sapna tha — apne desh ke liye kuch kar dikhane ka.. Uske baad har wicket, har sangharsh, har chot aur har comeback ne mujhe kuch na kuch sikhaya. Test cricket mere liye sirf ek format nahi, meri zindagi ka ek behad khaas hissa raha hai. Aaj bhaari dil aur anginat khoobsurat yaadon ke saath main Test cricket se retirement lene ka faisla kar raha hoon. Is safar mein mera saath dene wale har teammate, coach, family aur un karodon Bharatiyon ka dil se shukriya, jinhone achhe aur mushkil dono waqt mein mujh par bharosa banaye rakha.. BCCI aur Cricket Association of Bengal (CAB) ka bhi dil se shukriya, jinhone mere talent par bharosa kiya, mujhe aage badhne ke mauke diye aur mere cricket ke safar mein ek aham bhoomika nibhayi. Aapka saath aur vishwas mere liye hamesha khaas rahega. Maidan par meri aakhri Test ball bhale hi fenki ja chuki ho, lekin Bharat ke liye khelne ka garv hamesha mere dil mein zinda rahega. Shukriya, Test Cricket. ❤️ Aapka Shami 🇮🇳 #Mdshami11 #Mdshami #TestCricket #Retirement
— 𝕸𝖔𝖍𝖆𝖒𝖒𝖆𝖉 𝖘𝖍𝖆𝖒𝖎 (@MdShami11) November 6, 2026
He also expressed gratitude to those who stood by him throughout his career.
"My heartfelt thanks to every teammate, coach, family member and those millions of Indians who stood by me on this journey and kept their faith in me through both good times and difficult ones.
"My heartfelt thanks also to the BCCI and the Cricket Association of Bengal (CAB), who believed in my talent, gave me opportunities to grow and played an important role in my cricketing journey. Your support and trust will always be special to me.
"Even though my last Test ball on the field may have been bowled, the pride of playing for India will always live on in my heart."
Signing off, Shami added: "Thank you, Test Cricket. Yours, Shami."