Śrīmad-Bhāgavatam · Text 3.25.13
Who is speaking and story frame
श्रीभगवानुवाच
योग आध्यात्मिक: पुंसां मतो नि:श्रेयसाय मे ।
अत्यन्तोपरतिर्यत्र दु:खस्य च सुखस्य च ॥ १३ ॥
śrī-bhagavān uvāca
yoga ādhyātmikaḥ puṁsāṁ
mato niḥśreyasāya me
atyantoparatir yatra
duḥkhasya ca sukhasya ca
The Personality of Godhead answered: The yoga system which relates to the Lord and the individual soul, which is meant for the ultimate benefit of the living entity, and which causes detachment from all happiness and distress in the material world, is the highest yoga system.
Read Śrīla Prabhupāda's purport on Vedabase.io