Owning a dog can be extremely difficult for some people, which is why people’s hearts can burst with joy when a pooch finds its forever home.

In a viral video shared on TikTok, which can be seen here, user harveytherescue - named after the titular dog - explained the pooch had struggled to find a permanent home in the past.

It is unsurprising that videos involving dogs go viral online as millions of Americans own pets.

According to the American Veterinary Medical Association, in 2018, 48.2 million households in the U.S. had at least one dog.

It added there were 76.8 million dogs that were owned as pets in the U.S. that year.

The caption on harveytherescue’s viral TikTok read: “To the first person who returned him because of his anxiety. To the second person who returned him because he was too scared.

“To the third person who returned him because of his separation anxiety. You didn’t deserve him.”

As the video played, Harvey was shown initially looking afraid and depressed. But the clip continued on, showing Harvey looking extremely happy in his new home and being cared for by his new owners.

The poster added: “My intention is not to shame anyone with this video. I was just participating in a trend. I am eternally grateful he was returned.

“The rescue was also very transparent about Harvey’s anxieties and personality. With me and his previous adopters.”

Since being shared Monday, the clip has been viewed more than 289,300 times and liked on more than 51,000 occasions.

Many of those who commented on the post expressed their joy that Harvey now appeared to have found a new home.

Others hit out at those who wanted dogs but did not appreciate that it is a long-lasting commitment.

One TikTok user said: “My heart is bursting for joy. I hope he’s living his best life now.”

Another added: “Love this boy. Thank you for giving him the chance he always deserved.”

A third commented: “People want dogs but have no time for them, you have to have time, patience and love in your heart. They play up because they crave attention.”

A fourth posted: “He was always meant to be yours.”

Newsweek has contacted the original poster for comment.