This is a verse from Bhagavad Gita, describing the secret Lord Krishna says.Srila Prabhupada called this verse as the essence of Bhagavad Gita also. We SHOULD do these two things to go Back to Godhead.
The verse is as follows:
Janma karma ca me divyam
evam yo vetti tattvatah
tyakva deham punar janma
naiti mam eti so'arjuna
Translation: One who knows the transcendental nature of My appearance and activities does not, upon leaving the body, does not, upon leaving the body, take his birth in this material world, but attains My eternal abode, O Arjuna.
So, from this verse, we can understand that knowing and the Lord's birth and activities can take us back to the Lord.