In Pokemon Ruby, HM03, or surf, is found in Wally’s residence close to the Petalburg City Gym. A Hidden Machine, or HM, gives a Pokemon new abilities.
HMs, unlike Technical Machines, give abilities that can be employed outside of battle. The power gained, like that of other HMs, is critical to completing the game in its entirety.
Once players have returned to Petalburg City through Route 111, their next job is to combat all of the trainers in the gym in no particular sequence before fighting their own father in the final battle room. After the fight, players can travel next door to Wally’s house and talk to his father, who will give them HM03, or surf.