Ramayana
पिता पितामहस्तस्य तथैव प्रपितामहः । तत्पिता तत्पिता चैव विष्णुं यान्ति न संशयः ॥ 7-111-22 ॥
His father, his grandfather, and likewise his great-grandfather, and the father of that one and his father too, go to Vishnu; of this there is no doubt.
english translation