Srimad Bhagavatam Canto 10, Chapter 47, Text 33

SB 10.47.33

etad-antah samamnayo
 yogah sankhyam manisinam
tyagas tapo damah satyam
 samudranta ivapagah
 
Translation: 
 
According to intelligent authorities, this is the ultimate conclusion of all the Vedas, as well as all practice of yoga, Sankhya, renunciation, austerity, sense control and truthfulness, just as the sea is the ultimate destination of all rivers.
 
Purport: 
 
Here the Lord states that all Vedic literature is meant ultimately to bring the soul to the point of controlling the mind and senses and fixing them in transcendental self-realization. Thus processes of so-called yoga, mysticism or religion that involve unrestricted sense gratification are not actually spiritual processes but rather convenient ways for foolish people to justify their beastly behavior.
 
Lord Krsna here assures the gopis that by fixing their minds in self-realization, they will realize their spiritual oneness with the Lord. Thus they will no longer suffer the pangs of separation.
Srimad Bhagavatam Canto 10, Chapter 47, Text 32
Srimad Bhagavatam Canto 10, Chapter 47, Text 34