Only once you are obsolete.
You have to make yourself obsolete first. You have to bring in an engineering lead that is truly better than you. Better now just at “coding”, but at intuiting the product, managing the team, interfacing with customers, working with sales on bugs and features. Everything.
Until you are obsolete. You are stuck in technical work.