Hamas is one of the groups that several Arab countries named when explaining why they severed relations with Qatar.