SA vs PAK: When did de Kock and Azam face each other as captains last time?

In 2012 when Pakistan’s U-19 national team toured South Africa, Quinton de Kock was leading the Proteas while Green Shirts were captained by younger Babar Azam.
Interestingly, after 8 years, both of the skippers are again set to lead their national sides against each other in Karachi Test, starting from January 26.

South Africa are touring Pakistan for series of two Tests and three T20Is.