You receive HM04 (Strength) after defeating Gardenia, the 4th Gym Leader in Eterna City. An old man near the Eterna Forest entrance gives it to you. Teach it to a compatible Pokémon to move boulders outside battle.