In Pokemon Ruby, the Surf HM can be found in Wally’s residence close to the Petalburg City Gym. A Hidden Machine, or HM, provides a Pokemon new abilities.
Unlike Technical Machines, or TMs, HMs can be utilised outside of combat. As with other HMs, the provided ability is vital for completing the game in its entirety.
Once players are on Route 111 and have returned to Petalburg City, their next objective is to combat all the trainers in the gym in no particular sequence, followed by a confrontation with their own father in the final battle room. After the battle, players can walk to Wally’s house next door and speak with his father to receive HM03, or surf.