f*uck it, in other words, "forget it, I've had enough"
Sod it, I'm not putting up with you any longer, I'm off
Same as bugger it, as in fuck it but in it's arse.
Strangely, considered more polite.
Derived from sodomy.
We could put the shelf up, but sod it, let's go down the pub.