Three lost hikers survived a frigid night on California’s Mount Baldy by making camp between rocks that sheltered them from 50 mph wind gusts as they awaited rescuers, officials said Tuesday.

The three hikers had run out of daylight on Bear Canyon Trail while attempting to summit the mountain on Sunday, the Sierra Madre Search and Rescue Team said. The trio then lost the trail at an elevation of 8,200 feet because of significant snowfall from a storm.

The hikers, however, were prepared and officials recognized the trio for "the many things they did right."

The hikers had left their itinerary with relatives, who immediately notified authorities, the rescue team said. The trio also turned around instead of continuing their trek to the summit when conditions deteriorated.

TEEN TAKING PICTURES AT UTAH CANYON PLUMMETS TO HIS DEATH: ‘LOVED BY MANY’

rescuers trekking throug snowy conditions

Rescuers hiked four miles to reach the lost hikers on Mount Baldy. (Sierra Madre Search and Rescue Team)

Since the hikers were equipped with a tent and sleeping bags, rescuers instructed them to shelter in place overnight until rescue personnel could make the 4-mile ascent to meet them.

rescuers trekking throug snowy conditions

The three hikers lost the trail after running out of daylight and because of the significant snowfall from a storm, rescuers said. (Sierra Madre Search and Rescue Team)

One member of the rescue team directed the hikers to a marked location and stayed in contact with them throughout the night.

HUMAN REMAINS DISCOVERED IN JOSHUA TREE NATIONAL PARK AFTER RESEARCHERS FIND MISSING HIKER'S BACKPACK

The rescue team reached the hikers at around 1 p.m. the following day and found the trio had sheltered between rocks to block the 50-mph wind gusting overnight. Rescuers said the hikers had the proper gear and also carried a whistle, which proved key in locating them in the wilderness.

rescuers and hikers

The rescue team acknowledged the three hikers were well-prepared and did many things right before setting off and also once conditions on the mountain deteriorated. (Sierra Madre Search and Rescue Team)

The hikers were checked medically before rescuers escorted them down the mountain. A second rescue crew met the group in the field and provided hot chocolate, tea and sandwiches before finishing their descent by 5 p.m.

Rescuers said that if the hikers had not made the correct preparations, the situation may have had a tragic ending.

CLICK TO GET THE FOX NEWS APP

"We believe this preparation contributed directly to why these three hikers are alive and back home today," the rescue agency said.