That’s HBO’s highest rating since ‘The Sopranos’ finale.

How I Met Your Mother went out on top. Monday night’s series finale easily led the night, delivering 12.9 million viewers and a 5.3 rating among adults 18-49.

That marks the show’s highest-rated episode of all time, and jumped 51 percent from last week. HIMYM’s one-hour closer easily topped NBC’s usual Monday winner The Voice, which dipped slightly this week to 12.1 million viewers and a 3.4 rating.

The 3.5-hour program hosted by Ellen DeGeneres delivered a whopping 43 million viewers and a 12.9 rating among adults 18-49. That’s the biggest non-sports audience since NBC’s 2004 Friends finale. It also represents the third year in a row for the ratings to rise, up 6 percent from 2013. The Oscars out-delivered January’s Golden Globes by 22.1 million viewers and the Grammy Awards by 14.5 million viewers.

Sunday night’s 56th annual Grammy Awards delivered a big audience. Updated numbers from CBS put the Grammys at 28.5 million viewers, squeaking up from last year’s 28.4 million viewers. CBS notes this is the show’s second-largest audience in 21 years.