A man was rescued in critical condition after being swept onto rocks while surfing in Oceanside on Saturday.