be at a loose end
British & Australian, American
to have nothing to do.
If you find yourself at a loose end over the weekend, you could always clean out the garden shed.
Sarah was at loose ends in a strange city when she first met Bob.
Cambridge English Idioms Dictionary