It seems pretty obvious that it used to be on the pinch bolt on that negative battery clamp. Grab a crimp lug that goes over the bolt and reattach it...
I’ve discovered more wires. The blue grounds to the frame and there is also a red wire that it disconnected.I'm going to err on the side of caution here. Seeing owner installed wiring like that makes me shiver. You never know what genius work the previous owner did. If everything on the car functions as it should I would leave it disconnected until it's determined what that wire was supplying power to. If the wire is there to make a factory device function, well then, the real problem should be diagnosed and fixed properly. Maybe for an aftermarket radio memory, who knows. But if that were the case they should have just ran a short fused wire from the Terminal 30 buss connection under the dash. See where I'm going with this?