If it is the natural water table that has caused water to accumulate in the sink hole, it will flow back in from the surrounding soil as they drain water out. It would be better just to fill it in with soil and displace the water, but I agree with Peter. Some further investigation is warranted before the hole is filled in. In the meantime, if it is a safety issue, just fence it off.