Shiva Purana
श्रुताध्ययनसंपन्ना नानाशास्त्रविशारदाः॥ ज्ञानिनोऽपि विमुह्यंते पूर्वकर्मवशानुगाः ॥ २३ ॥
Persons endowed with Vedic studies, experts in different Śāstras and the perfectly wise too become deluded when subservient to the force of the previous Karmans.
english translation
zrutAdhyayanasaMpannA nAnAzAstravizAradAH॥ jJAnino'pi vimuhyaMte pUrvakarmavazAnugAH ॥ 23 ॥
hk transliteration by Sanscript