Premanand Maharaj Ji
Where does ego come from and how does it end?
Ego is born of ignorance
Ego arises from avidya (ignorance), when we forget our true self and take ourselves to be the body. Offer the ego to Bhagwan while walking the path of bhakti, or end the ignorance through Sankhya yoga knowledge.
Either, walking the path of bhakti, offer the ego to Bhagwan, or through Sankhya yoga knowledge destroy this ignorance and rest in your true self; then ego can be destroyed.