The 37-year-old Younis, on Tuesday, became Pakistan's leading run scorer in Test history. He reached the milestone with a six off Moeen Ali. As soon as he claimed the record, his team-mates and fans gave a standing ovation and the batsman acknowledged.
He had entered the Test needing 19 runs to go past Miandad. He fell to Stuart Board, caught by captain Alastair Cook, for 38 runs.
Younis, in his 102nd Test match, moved from 15 to 21 with a hit over the boundary to break Miandad's record which stood for over 20 years. Miandad played his last Test in December 1993 and the record was in his name for nearly 22 years.
The right-hander went past Miandad's Test aggregate of 8,832 runs (124 Tests). Younis is also the record holder for most Test centuries from Pakistan with 30.
Younis made his Test debut against Sri Lanka in Rawalpindi in February 2000. He averaged over 54 before the start of today's match.
Most Test runs for Pakistan (As on October 13, 2015 after Younis was out for 38)
Younis Khan - 8,852 (102 Tests)
Javed Miandad - 8,832 (124 Tests)
Inzamam-ul-Haq - 8,829 (119 Tests)
Mohammad Yousuf - 7,530 (90 Tests)
Saleem Malik - 5,768 (103 Tests)
Most Test centuries for Pakistan
30 - Younis Khan
25 - Inzamam-ul-Haq
24 - Mohammad Yousuf
23 - Javed Miandad
15 - Saleem Malik