yad yasya vanisiddham syad
yena yatra yato nrpa
sa teneheta karyani
naro nanyair anapadi
yat—whatever; yasya—of a man; va—either; anisiddham—not forbidden; syat—it is so; yena—by which means; yatra—in place and time; yatah—from which; nrpa—O King; sah—such a person; tena—by such a process; iheta—should perform; karyani—prescribed activities; narah—a person; na—not; anyaih—by other ways; anapadi—in the absence of danger.
In normal conditions, in the absence of danger, O King Yudhisthira, a man should perform his prescribed activities according to his status of life with the things, endeavors, process and living place that are not forbidden for him, and not by any other means.
This instruction is given for men in all statuses of life. Generally society is divided into brahmanas, ksatriyas, vaisyas, sudras, brahmacaris, vanaprasthas, sannyasis and grhasthas. Everyone must act according to his position and try to please the Supreme Personality of Godhead, for that will make one’s life successful. This was instructed in Naimisaranya:
“O best among the twice-born, it is therefore concluded that the highest perfection one can achieve, by discharging his prescribed duties [dharma] according to caste divisions and order of life, is to please the Lord Hari.” (Bhag. 1.2.13) Everyone should act according to his occupational duties just to please the Supreme Personality of Godhead. Then everyone will be happy.
Link to this page: https://prabhupadabooks.com/sb/7/15/66