Hegazi has represented the senior Egyptian national team since 2011, during this period his only absences from the squad have been due to injury. He has represented Egypt in the 2009 FIFA U-20 World Cup, 2011 African U-20 Championship, 2011 FIFA U-20 World Cup, the 2012 Summer Olympics, 2017 Africa Cup of Nations and the 2018 FIFA World Cup. In 2017, he was included in the 2017 Africa Cup of Nations CAF Team of the tournament due to his impressive performances.