(There are) those who wait for you, so if you get a victory from Allah, they say, “”Were we not with you?”” And if the share (of victory) is for the infidels, they say (to the infidels), “”Did we not have mastery over you and protect you from the believers?”” So Allah will judge between you on the day of resurrection. And Allah will not give the infidels a way (of dominance) over the believers. (R 20)
The behavior of hypocrites and the result of it is mentioned and it is clearly stated that infidels will not dominate the believers. If at some places infidels are dominating the believers, then there is something wrong with the believers because the Quran cannot be wrong. Again believers are warned not to take infidels as friends instead of believers.