Neil Patrick Harris as Barney Stinson in How I Met Your Mother — CBS