Corruption and undue political influence stemming from a large source of extractive income isn't a an issue particular to Islam as I can see it; in fact I'd say it's something endemic to the human condition.
But, when it comes to oil production what I would say is that due to the overlapping geography of the foundation and consequent spread of Islam and largest and easiest to extract oil resources in the world being very large combined with human tendency to overfit pattern matching that it is all too easy to see why some would conflate the two.
But Islamic majority nations aren't the only "oil countries", and not all "oil countries" are corrupt (but I'd guess the overwhelming majority of "oil countries" are corrupt, not least because of Dutch Disease).