Most of Link's magic comes from Great Fairies hidden in odd corners of Hyrule, and the spell locations are easy to walk straight past.
For Din's Fire, head to Hyrule Castle Garden and find the dead end with the cracked rock. Bomb it open, crawl through, and play Zelda's Lullaby in the alcove. A fairy appears and grants the spell.
You'll want Spin Attack first, though, and that one sits at the very top of Death Mountain. Grab it before you go hunting for the rest, since it makes the climb back far less miserable.