This is probably a shloka from Bhagavad Gita that tells you about the three gateways to hell(self destruction)
It is one of the shlokas from bhagvad gita that tells you that nothing is permanent in this world
This is probably a shloka from bhagwat gita that says to focus on your actions and not on your results