In December 2018, Hamza was named in South Africa's
Test squad for their series
against Pakistan. He made his Test debut for South Africa against
Pakistan on 11 January 2019. In May 2021, he was named as the captain of the
South Africa A team for their
tour to Zimbabwe. In June 2021, in the first unofficial Test match, Hamza scored unbeaten 222 runs, which led South Africa A to victory over
Zimbabwe A by an innings and 166 runs. In November 2021, he was named in South Africa's
One Day International (ODI) squad for their series
against the Netherlands. He made his ODI debut on 26 November 2021, for South Africa against the
Netherlands. In March 2022, Hamza tested positive for
furosemide, a prohibited substance, following an ICC anti-doping test in January. Hamza did not dispute the outcome of the test, and agreed to a voluntary suspension, before being provisionally suspended by the ICC. In April 2023, he was recalled to the
South Africa A's first-class and List A squad for their
tour to Sri Lanka. In December 2023, he was selected in South Africa's squad for the test series against New Zealand. ==References==