A man who was hit in a freak lightning strike while swimming on a NSW Central Coast beach remains in a critical but stable condition.

The man, in his 20s, was hit by lightning while in the water at about 3pm on Saturday afternoon at Ettalong Beach, NSW Ambulance said.

The man was pulled from the water and treated by paramedics at the scene and was rushed to Gosford Hospital in a serious condition.

He has since been transferred to Royal North Shore Hospital where he remains in a critical but stable condition.

Storms have been forecast across NSW on Saturday and are expected to continue over the next two days.

But eye witnesses said the lightning strike came “out of nowhere”.

“That strike came out of nowhere in bluesky,” said one person on social media.

Another added: “It was incredibly loud. We were actually in the water at the time.

“Storms had developed around Palm Beach and Gosford, but where we were, the skies were clear and the sun was shining.

“That lightning strike came completely out of nowhere. I hope the young person makes a full recovery. The first responders were performing CPR for quite some time.”

Another person said the beach “was beautiful and sunny” and “then clouds partially came over”.

“I’d just had a swim then a huge crack of thunder sounded out of nowhere. It was terrifying,” the person said.