Abdelhamid was called up to the
Morocco national team for a friendly against
Albania on 1 September 2016, but did not feature. He made his official debut in a 2–0
2017 Africa Cup of Nations qualification win over
São Tomé and Príncipe. He was part of Morocco's roster at the
2019 Africa Cup of Nations, in which they made the last 16. On 28 December 2023, Abdelhamid was amongst the 27 players selected by coach
Walid Regragui to represent Morocco in the
2023 Africa Cup of Nations. He started in the final group match against
Zambia. On 5 October 2025,
Tarik Sektioui called up Abdelhamid to the
Morocco A' national team for friendlies against Egypt and Kuwait in preparation for the
2025 FIFA Arab Cup. On 9 November 2025, Abdelhamid was among 29 players called up to take part in a training camp at the Mohammed VI Football Complex. ==Career statistics==