Chapter 6 Dhyana Yoga Verse 18

Shloka
Sarvabhootasthitam yo maam bhajatyekatwamaasthitah;
Sarvathaa vartamaano’pi sa yogee mayi vartate.
Translation
He who, being established in unity, worships Me who dwells in all beings,
that Yogi abides in Me, whatever may be his mode of living.
Interpretation
In this sloka Lord Krishna talks subsequent to a person establishing himself in Brahman and getting attached to God. Here Lord Krishna says that a person has to arrive at the unity of body and soul and should establish himself in that unity. That person when he wholeheartedly worships the God who is present in all the living beings that person will automatically abides himself in God. That means he becomes a part of the Lord. Such a person attains this state irrespective of the kind of living he is in or the kind of comforts he possess.
Extending Interpretation to Mankind’s Life!
This sloka talks about the person being embraced by God irrespective of his mode of living. What does this mode of living mean? Mode of living means the kind of life a person leads with respect to financial and social status. The moral and religious aspect has already been explained before. Only a person who is morally superior follows the footsteps of Lord is eligible for moksha. But the kind of life here refers to his economic and social status. God gives equal chance to everyone whatever maybe the mode of living, either you live in a banglow or in a hut both are same for God.
The person should be good at deeds. Caste, creed and religion doesn’t matter to God because they are the creations of humans. Irrespective of a person being a brahmin or an untouchable, he has equal chance of attaining salvation, provided he shows the same level of commitment in uniting his soul with the body. The same is the case with a person who is very rich and a person who is extremely poor. So, whatever maybe the mode of life of an individual he has an equal chance of attaining moksha through meditation and uniting himself with God.