The exact words you quoted don't exist in the Bible.Perhaps you are thinking of these verses,
Matthew 10:35-39 (New International Version)
35 For I have come to turn a man against his father,
a daughter against her mother,a daughter-in-law against her mother-in-law.36 a man’s enemies will be the members of his own household.37 Anyone who loves their father or mother more than me is not worthy of me; anyone who loves their son or daughter more than me is not worthy of me. 38 Whoever does not take up their cross and follow me is not worthy of me. 39 Whoever finds their life will lose it, and whoever loses their life for my sake will find it.
These verses show the necessity of following, which means obeying and serving Jesus,even at the expense of our personal relationships and selfish desires in order to secure an eternal life living with God.