Overview
"Bad News" is the 13th episode of the sixth season of the CBS sitcom How I Met Your Mother and their 125th episode overall. It aired January 3, 2011. TV Guide listed "Bad News" in its list of 2011's Top TV Episodes.
Plot
After several months of trying to conceive without success, Marshall and Lily are referred to a fertility expert. As they tell Ted the news at MacLaren's, Barney arrives and announces to Ted and Marshall's dismay that he needs a partner for a laser tag tournament.
Lily goes to her appointment with the fertility expert, Dr. John Stangel (Neil Patrick Harris), who looks exactly like Barney, save for a beard and dark brown hair. Lily assumes he is Barney in disguise and confronts Barney, but Marshall says they were together the whole day. He skeptically attends Lily's next appointment, but to his surprise, also becomes convinced that Stangel and Barney are the same person. Barney arrives, acknowledges the similarity, and leaves. After some misunderstandings, Lily finally sees Barney and Stangel in the same room together and is satisfied that they are two different people.
When Lily's tests reveal that she is extremely fertile, Marshall considers that his sperm may be the problem. He decides to get his sperm tested but is unable to produce a sperm sample at the doctor's office. He returns home to produce the sample, only to find that his parents have dropped by for a surprise visit. He reluctantly tells them his concerns about infertility, but they reassure him that they love him no matter what.
From Wikipedia (CC BY-SA 4.0).