Egypt secured a place in the knockout round of 32 after beating Panama 4-1 in a thrilling match in Qatar. They are the second African team to reach the next round, following Uganda, and finished second in Group A.