(And as for Thamud, We showed and made clear to them the path of truth (Islamic Monotheism) through Our Messenger (i.e. showed them the way of success), but they preferred blindness to guidance) (41:17).

testifying to this meaning.

Also, Allah said,

[وَهَدَيْنَـهُ النَّجْدَينِ ]

(And shown him the two ways (good and evil).) (90:10)

This is the view of the scholars who said that the two ways refer to the paths of righteousness and evil, which is also the correct explanation. And Allah knows best.