Valmiki Ramayana Aranya Kanda Sarga 16 Shloka 34
Original Shlokaन पित्र्यमनुवर्तन्ते मातृकं द्विपदा इति। ख्यातो लोकप्रवादोऽयं भरतेनान्यथा कृतः।।3.16.34।।
1 source checked for this shloka
द्विपदाः humans, पित्र्यम् father's, न अनुवर्तन्ते do not follow, मातृकम् mother's, इति this way, ख्यातः wellknown, अयम् this, लोकप्रवादः saying in the world, भरतेन by Bharata, अन्यथा otherwise, कृतः is rendered.
The saying that men follow mother's path but not the path of the father, has been disproved by Bharata.