Were do you get surf on pokemon emerald?

Beat 4 Gym leaders then beat the gym leader in petalburg city.