So in general I do not work weekends and I set that expectation early on.
I also don't work after 5 or so and set that as well.
For the most part no one is on their death bed saying they wish they worked more.
That said you still have to be flexable and when there is a reason then I do it.
I've worked 36 hours straight on a holiday weekend to save the company 10s of thousands of dollars, just to be laid of 5 years later.

I've done late night when something has to be done.
I've stayed late, gotten up early or event the middle of the night to take calls with folks in other parts of the world.
As a manager I had all my team come in on a Saturday once in 12 years.
They all made six figures and it was a one off. I also provided a decent lunch.
My boss told me not to have them come in, but we had to finish something and this was the only way to do get it done.
We got it done, and then 2/3rds of the team was laid off that week.

I guess my boss knew something I did not.
Anyway, the key is to set the expectations up front and then be flexable as long as the company is flexable.
Also keep in mind as soon as you can be replaced by someone for less or AI they will probably do it.
They don't recall the things you did for them and just look at the bottom line.
The last few layoffs were just sorting salaries and going from the top down.
Also don't take calls off hours or check emails unless its part of an agreement.
Lasty if they want you to take calls or read emails they need to provide a phone.
Never use your personal phone - ever.
I don't understand people that do.