MILWAUKEE -- Bus driver Denise Wilson was taking a quick break from work a few minutes past midnight when she spotted a small shadow moving towards her in the distance.

It was cold, about 20 degrees out in late January, so the Milwaukee, Wisconsin, transit bus driver was shocked to see a shoeless little boy wearing only pajamas standing on the sidewalk across the street.

“He came out of nowhere, out of nowhere,” Wilson told CBS affiliate WDJT. “I just happened to look over and heard him crying and he was just running up Center.”

{"author_name":"Milwaukee County Transit System","author_url":"","provider_url":"","provider_name":"Facebook","success":true,"height":281,"html":"&#lt;div id=\"fb-root\"&#gt;&#lt;/div&#gt;\n&#lt;script&#gt;(function(d, s, id) {\n var js, fjs = d.getElementsByTagName(s)[0];\n if (d.getElementById(id)) return;\n js = d.createElement(s); = id;\n js.src = \"//\";\n fjs.parentNode.insertBefore(js, fjs);\n}(document, 'script', 'facebook-jssdk'));&#lt;/script&#gt;&#lt;div class=\"fb-video\" data-href=\"\"&#gt;&#lt;blockquote cite=\"\" class=\"fb-xfbml-parse-ignore\"&#gt;&#lt;a href=\"\"&#gt;Missing Boy Saved By Milwaukee Bus Driver&#lt;/a&#gt;&#lt;p&#gt;Driver Denise Wilson's kindness and alert instincts kept a missing 5 year old safe. Another example of #MCTSExcellence&#lt;/p&#gt;Posted by &#lt;a href=\"\"&#gt;Milwaukee County Transit System&#lt;/a&#gt; on Wednesday, March 15, 2017&#lt;/blockquote&#gt;&#lt;/div&#gt;","type":"video","version":"1.0","url":"","width":500}

Wilson jogged toward the 5-year-old boy, asking him his name, where his family was — anything that could help her find his home.

“It was shocking and a little frightening for me at first, too,” Wilson said.

The boy was visibly shivering, so Wilson wrapped him in her coat and carried him to a nearby gas station. She bought him some snacks to calm him down, and a man inside gave him a hoodie.

“You still cold? You still a little cold?” she asked, while leading the boy back to the bus.

With snacks in hand, the 5-year-old took a seat near the front of the bus as Wilson reassured him everything was going to be all right.

“He ended up falling asleep on the bus,” Wilson said. “He ate his snack and fell asleep.”

While the exhausted child took a nap, Wilson closed the bus door, ending her shift early to stay with the boy until police arrived.

She said a miscommunication among family members led to the child going missing, reports WDJT.

“Police say the boy wandered away from home and credit Denise for making sure a scary situation didn’t go from bad to worse,” the Milwaukee County Transit System said in a statement online.

The driver, who has been on the job for just 6 months, is glad she followed her instincts.

“It all worked out,” she said.