Bhagavad Gita

ಶ್ರುತಿವಿಪ್ರತಿಪನ್ನಾ ತೇ ಯದಾ ಸ್ಥಾಸ್ಯತಿ ನಿಶ್ಚಲಾ।
ಸಮಾಧಾವಚಲಾ ಬುದ್ಧಿಸ್ತದಾ ಯೋಗಮವಾಪ್ಸ್ಯಸಿ ॥೫೩॥
śrutivipratipannā te yadā sthāsyati niścalā|
samādhāvacalā buddhistadā yogamavāpsyasi ||53||

Gist of the sloka:
That which originally did not align with the Shruthi, when it aligns with it, then your mind is strong due to knowledge and realization. It then reaches the state of samadhi and reaches the goal.
We first listen to the aspects of Lord. When we try to read the Veda's [Shruthi] it appears as though there is various contradiction. The mind gets confused and actually thinks against the Lord and his teachings. He first realizes the actions of the 3 gunas and thereon the method to overcome the barriers of the 3 gunas.
Once the mind is cleared of the confusions due to persistent thinking along the lines of the Shruthi, it now realizes the Vedic teachings. At that state, the mind, thinking and actions become one and aligned with/tuned to Veda's. What is in the mind and what the Veda's says would be the same. With this state, the mind stops working and the Atma directly starts realizing Lord. The Atma realizes who it is and the relationship with the Lord. This is the state of meditation, for God realization.
In fact, the learned people say, that at a stage when the mind automatically says what could be written in the Veda's, he has risen to the state where his need for Veda's [as a reference] is greatly reduced.
As we have noticed in the episode of churning of the ocean, the first thing which comes out is the poison and when persisting with the efforts it gives Amruta [the elixir of immortality]. So is the case when studying the various books of Lord including Veda's. The first thing which occurs is confusion and sometimes completely negative thoughts. If one persists, the next which comes out is Amrutha, the true knowledge of God-realization.
Being aware of this process, greatly helps in persisting with seeker’s determination.