Thank you for asking this question, as it made me think hard about choosing the one thing that I think helped the most in my career.
For me, it's been staying at the same company for 14 years. I got my first post-college at VMware and have kept it so far. As the years passed, I would talk to so many people who told me that after two or three years, I should switch jobs and it would allow me to earn more money and that it would help me advance faster in my career. But being brought up by parents who tried and failed in so many short cuts in life, I was stubborn in that I was going to take the slow and steady road.
After 14 years, I'm "just" a senior manager on a small team while some people I know have become Directors, or even VPs (there are many more others who have not progressed as much in their careers). But I can tell you that because I've been at the same company, I've had a steady income and I have lots of time flexibility, which helps me focus on what matters most, which is my family. I have also earned and kept a great reputation at work as someone who is reliable and knowledgable, which helps me feel safer that I will keep my job, even in this uncertain time in the world.
As with every decision, there are pros and cons, but I for one, am really glad I found a great company like VMware, whose values line up pretty well with mine. I am also really lucky in the coworkers that I have and the friendships I have formed through VMware over the years.
In summation, unlike the general rule of thumb that I hear that people should switch jobs every few years, my advice is to find a company that treats you well, and ride it out. Sometimes, it pays off. :)
Wish you the best of luck in your career, Cecilia!