Bhagavad Gita 6.44

पूर्वाभ्यासेन तेनैव ह्र्यते ह्यवशोऽपि स: |
जिज्ञासुरपि योगस्य शब्दब्रह्मातिवर्तते

Translation

Indeed, they feel drawn toward God, even against their will, on the strength of their past discipline. Such seekers naturally rise above the ritualistic principles of the scriptures.