CONCORD, N.H. — In a show of solidarity with the city of Boston, the New Hampshire House sang Neil Diamond’s “Sweet Caroline” at the end of its legislative session Wednesday.

The crowd-pleasing song is a staple of Boston Red Sox games. It makes no specific mention of Boston or the Red Sox, but the team started playing it regularly at Fenway Park more than a decade ago and fans took to it.

The tune has become a source of comfort following the explosions at the Boston Marathon. Diamond gave a live performance of the song in the eighth inning of a game at Fenway last week.

There are about 400 members in New Hampshire’s House.