The video of a grizzly bear charging a group of hikers with a toddler has gone viral on social media. The incident took place at Glacier National Park, Montana, on Sunday.

Dulé Krivdich, who posted the video on Facebook, wrote that he and his wife were hiking back up after visiting Hidden Lake when he saw the bear "coming through a treeline, down a meadow and swiftly on to the trail itself to get to wherever he wanted to go."

"Now hikers just below on the same trail are totally unaware of what’s heading their way as we from above start yelling that there is a bear barreling down the same trail," he wrote, adding that the hikers then ran in spite of him warning them not to.

Speaking to NBC-affiliated television station KHQ, Krivdich said, "They ran and I think that's when the bear did that extra little buff charge towards them. The bear didn't want any trouble anyway, the bear was not initially aggressive. The scary part was there was a 1-year-old infant on the back of a guy's carrier. He actually slowed down and stopped when the bear did the bluff charge, and he waved his arms up, he kind of made himself look bigger and the bear actually stopped at that point so who knows, that may have been the saving grace moment."

See posts, photos and more on Facebook.

Luckily, the bear did not follow the hikers.

Dillon Tabish a Regional Information and Education Manager with Montana's Fish, Wildlife, and Parks, spoke to the television station and gave simple safety tips that hikers should keep in mind.

"Any time folks are out hiking or camping or just recreating outdoors they need to be aware they are in bear country and there are some really important precautionary steps folks need to take to be safe and that means carrying bear spray first and foremost. Make sure they know how to use it and make sure it's in a place that's easily accessible," he said.

"It's not uncommon to have a surprising situation like that kind of freeze you in your steps and that's okay, you just want to get that bear spray out. It's just really important to stay calm, stay in a group, make a little bit of noise, and slowly move away from that situation," Tabish added.

This is a representational image of a grizzle bear. Reuters