The song playing during the closing credits of the Friends episode where Joey moves in with Chandler (Season 1, Episode 8: "The One Where Nana Dies Twice" — the guys' hug scene) is "I'll Be There for You" by the Rembrandts.
This is the series' iconic theme song, used in the closing credits of virtually every episode (with rare exceptions for special musical finales). The version in the credits is the short TV edit (~50 seconds); the full single runs ~3 minutes.
The hug between Joey and Chandler in that episode—realizing they're stuck with each other as roommates—is perfectly underscored by the lyric: "I'll be there for you / When the rain starts to pour."