The Pakistani team Stops South Africa's 10-match Unbeaten Run.
The left-arm pacer secured a quartet of wickets in the second innings after going wicketless in the initial session.
Opening Test, Lahore (day four)
The home side 378 (Imam-ul-Haq 93, Agha 93; Senuran Muthusamy 6-117) & 167 (Babar Azam 42; the spinner 5-57)
The visitors 269 (Tony de Zorzi 104; Noman 6-112) & 183 (Brevis 54; Shaheen 4-33, Noman 4-79)
Pakistan won by 93 runs
Pakistan brought an end to the reigning champions the Proteas' unbeaten run by sealing a 93-run margin victory in an exciting and hard-fought first Test in the city of Lahore.
The Proteas, who had a 10-match winning streak in the longest format culminated in a win against Australia in the WTC final in June, were bowled out for 183 in pursuit of 277.
Having resumed on 51 for two, they lost first-innings centurion Tony de Zorzi leg before wicket to left-arm quick Afridi to the third ball of the day to push the tightly balanced chase in Pakistan's favour.
Left-arm spinner Noman, who claimed 10 wickets for 191 runs in the game, dismissed Tristan Stubbs for two and clean bowled Brevis, who offered some resistance with a run-a-ball 54.
Off-spinner Sajid Khan also capitalized on significant spin to terminate opening batsman Rickelton's innings - he faced 145 deliveries for 45 - and Shaheen came back in the afternoon session to knock over the lower order with a impressive exhibition of reverse swing.
He trapped Verreynne leg before for nineteen and dismissed Prenelan Subrayen and Kagiso Rabada to secure the win.
It was each team's opening game of the 2025-2027 Test championship cycle and moves the hosts straight into second place behind leaders Australia.
The win was built around contributions of 93 by opening batsman Imam-ul-Haq and, importantly, number seven Salman Agha which lifted them to 378.
From there slow bowlers Noman and Sajid Khan utilized helpful home pitches, as they did in their Test series win over the English team last year, to sustain their lead.
The second and last match begins on 20 October.