Yes, the Quran contains a verse that expresses a similar concept, where Allah uses an example (or parable, which is part of the Quranic verses) to guide many people while misleading others—specifically those described in various translations as rebellious, defiantly disobedient, transgressors, wicked, or immoral (though not exactly “crooked minds” in standard English renditions). This is found in Surah Al-Baqarah, verse 26.
A common English translation (Sahih International) reads: “Indeed, Allah is not timid to present an example—that of a mosquito or what is smaller than it. And those who have believed know that it is the truth from their Lord. But as for those who disbelieve, they say, ‘What did Allah intend by this as an example?’ He misleads many thereby and guides many thereby. And He misleads not except the defiantly disobedient.” 17
Other translations use slight variations, such as “He causes many to err by it and many He leads aright by it! but He does not cause to err by it (any) except the transgressors” (Shakir) or “He misleads many thereby and guides many thereby. And He misleads not except the defiantly disobedient” (multiple sources). 17 The key idea is that the guidance or misguidance stems from the individual’s disposition, not arbitrarily from the verse itself. If “crooked minds” refers to a specific non-English translation or paraphrase, it may align with terms like “fasiqeen” (the Arabic word for the disobedient or wicked in this context), but it doesn’t appear directly in major English versions.