RIVERSIDE (CBSLA.com) — A dog’s intuition helped rescue a hiker who was trapped for days under rocks on Mount Rubidoux in Riverside.

Ramon Llamas and his dog, Molé, were on a hike Monday morning on the popular landmark when Molé led his owner off the main trail and right to the victim, who was wedged between two boulders.

Llamas said he immediately called rescue crews.

Riverside Fire Capt. Bruce Vanderhorst said the hiker appeared to have slipped and fell into a crack between the rocks.

The captain said he estimates the victim was trapped for four or five days based on the level of the man’s dehydration.

“He was severely dehydrated. He was conscious. We were able to talk to him. But we could not fully get all the information out of him,” said Vanderhorst. “He was slightly confused with his timeline of events.”

The hiker was taken to Riverside Community Hospital and treated for dehydration.

KCAL9’s Greg Mills said the victim wanted to thank Llamas and of course, Molé, for saving his life.