The Pakistani team Halts South Africa's 10-match Unbeaten Run.
The left-arm pacer took a quartet of wickets in the second innings after going wicketless in the first innings.
First Test, the Gaddafi Stadium (day four)
The home side 378 (Imam-ul-Haq 93, Salman Agha 93; Muthusamy 6-117) & 167 (Babar Azam 42; Muthusamy 5-57)
The visitors 269 (De Zorzi 104; Noman Ali 6-112) & 183 (Brevis 54; Shaheen Afridi 4-33, Noman Ali 4-79)
The hosts secured a 93-run victory
The national team terminated world champions the Proteas' winning streak by achieving a 93-run margin win in an exciting and competitive first Test in the city of Lahore.
South Africa, who had a 10-Test unbeaten run in the longest format culminated in victory over the Aussies in the WTC final in the month of June, were dismissed for 183 chasing 277.
Having resumed on 51 for two, they saw the dismissal of century-maker Tony de Zorzi lbw to left-arm quick Afridi to the third delivery of the day to push the finely-poised chase in Pakistan's favour.
Left-arm spinner Noman Ali, who secured 10 wickets for 191 runs in the match, dismissed Stubbs for 2 and bowled Brevis, who offered some resistance with a run-a-ball 54.
Right-arm spinner Sajid also capitalized on significant spin to end opener Rickelton's innings - he lasted 145 balls for 45 runs - and Afridi came back in the post-lunch session to knock over the tail with a impressive exhibition of reverse swing.
He trapped Verreynne lbw for nineteen and dismissed Prenelan Subrayen and Rabada to secure the win.
It was both sides' first match of the 2025-2027 Test championship cycle and moves Pakistan directly into second place after table-toppers the Australian team.
Their victory was founded on contributions of 93 by opener Imam-ul-Haq and, importantly, number seven Salman Agha which boosted them to three hundred and seventy-eight.
After that slow bowlers Noman Ali and Sajid took advantage of favourable home conditions, as they had in their Test series win over England the previous year, to sustain their advantage.
The second and last match starts on October 20.