If you act towards others with an intention to gain something from them, then you will have to face sorrow and pain.