Valmiki Ramayana Ayodhya Kanda Sarga 21 Shloka 36
Original Shlokaतदेतत्तु मया कार्यं क्रियते भुवि नान्यथा। पितुर्हि वचनं कुर्वन्न कश्चिन्नाम हीयते।।2.21.36।।
1 source checked for this shloka
भुवि in this world, कार्यम् duty, तत् एतत् that this(compliance with the command), मया by me, अन्यथा in any other manner, न क्रियते will not be done, पितुः father's, वचनम् orders, कुर्वन् while carrying out, कश्चित् any one, न हीयते नाम will not perish.
I will not do as duty anything contrary to what is done by others in this world. No one who obeys the commands of his father falls off the path of righteousness.