call it quits

US /kɔl ɪt kwɪts/
UK /kɔl ɪt kwɪts/
"call it quits" picture
1.

to stop doing something, especially because it is difficult or unsuccessful

:
After working on the project for hours, we decided to call it quits for the night.
If things don't improve, I might have to call it quits and look for a new job.