One of the village children will lead you to it if you ask around. This means you can pull the Master Sword as soon as you've completed 40 shrines, even if you invested heavily into stamina upgrades along the way.