The Pakistani team Stops the Proteas' 10-Test Winning Streak.
The left-arm pacer took four wickets in the final innings after going wicketless in the first session.
Opening Test, Lahore (day four)
The home side 378 (Imam 93, Agha 93; Senuran Muthusamy 6-117) & 167 (Babar Azam 42; Muthusamy 5-57)
The visitors 269 (Tony de Zorzi 104; Noman Ali 6-112) & 183 (Dewald Brevis 54; Shaheen Afridi 4-33, Noman Ali 4-79)
Pakistan won by 93 runs
Pakistan halted the reigning champions South Africa's unbeaten run by sealing a 93-run margin victory in an exciting and hard-fought opening Test in Lahore.
South Africa, whose 10-Test winning streak in the longest format culminated in victory over the Aussies in the WTC final in June, were dismissed for 183 chasing 277.
Starting the day on 51-2, they saw the dismissal of first-innings centurion Tony de Zorzi lbw to pace bowler Shaheen Afridi to the third ball of the day to push the finely-poised chase in Pakistan's favour.
Slow left-armer Noman, who secured 10-191 in the match, removed Stubbs for 2 and bowled Brevis, who offered some resistance with a run-a-ball 54.
Right-arm spinner Sajid also took advantage of sharp turn to terminate opener Ryan Rickelton's stay - he lasted 145 balls for 45 runs - and Afridi came back in the post-lunch session to knock over the tail with a fine display of reverse swing.
He had Kyle Verreynne leg before for nineteen and dismissed Subrayen and Rabada to secure the victory.
It was both sides' first match of the 2025-2027 World Test Championship cycle and propels the hosts straight into the number two spot after table-toppers the Australian team.
Their victory was built around contributions of ninety-three by opening batsman Imam and, importantly, number seven Agha which lifted them to three hundred and seventy-eight.
From there spinners Noman and Sajid utilized helpful home pitches, as they had in their series victory over the English team last year, to sustain their advantage.
The second and last match starts on October 20.