Sridhara Swami's Commentary
Now the question may arise as to how one may achieve moksa or liberation from material existence by merely controlling the mind and senses in this way? Lord Krishna spoke this verse to confirm that moksa is attained by knowledge and not merely by control of the mind and senses. The words jnatva mam which means knowing Lord Krishna as sarva-loka mahesvaram or the sovereign lord of all the worlds and knowing Lord Krishna as suhrdam sarva-bhutanam the benevolent well-wisher of all living beings. This knowledge is essential and one who comprehends this knowledge along with performing yoga or the science of the individual consciousness attaining communion with the ultimate consciousness becomes qualified to attain moksa.
I bow down to the Supreme Lord Krishna who thus removed the thorn of doubt regarding cultivation of knowledge and selfless actions by prescribing the combination of the two in proper sequence.