I quit without another traditional job lined up. But I definitely had a plan. I highly recommend having a plan too.
I got pretty high up on the traditional engineering corporate ladder (junior to senior to lead to managing managers at a startup) and realized, even though I was pretty good at it, it just wasn't where I wanted my life to go.
I enrolled in a part time language learning school for Chinese and spend the other half trying to get a engineer training business off the ground. I figure the worst case scenario was I'd learn Chinese and have plenty content in my portfolio to become a Developer Advocate for The Man later. Worst worst case scenario I'd already developed a great reputation with previous colleagues in the past I could send a text message to and get work fixing broken websites again.
I further hedged my risk by giving a 1 month notice at my last job to ensure no bridges were burned. Also relocated from California to Taiwan which halved my living expenses and doubled my quality of life.
Even though I had a multi year run way of savings, an impending IPO that would give me even more cash, and the bonkers bull market of 2021, I _still_ got a bit anxious about not making an income right away at first.
Instead of planning on doing nothing I'd recommend finding a 10-20 hour a week contract gig, or interviewing at somewhere like karat.com to give freelance interviews. At the very least, have a plan of WHAT you'll be doing if you're not working, maybe it's signing up for a foreign language course, or grad school, or flamenco dancing, whatever. Just make sure you have some sort of routine planned. You can start your own thing while taking a part time class, and it'll make it much easier to make friends and not accidentally waste your time on social media by accident.
That being said, if you have a plan of what you'll do, have a specific place in mind, and have the cash saved up, go for it.