In the bustling streets of San Francisco, a heartwarming tale of friendship unfolds between two unlikely companions, Ben Hughes and Roger Collins. Initially, they seemed worlds apart, with Mr. Hughes a dedicated Orioles fan and Mr. Collins a staunch supporter of the Giants. Their paths crossed in this vibrant city, where Mr. Hughes had relocated for work in a health care startup, while Mr. Collins sought solace in the city’s health care services while living in a homeless shelter.

The serendipitous meeting of these two individuals was orchestrated by Miracle Messages, a nonprofit organization in the Bay Area that specializes in fostering connections and rebuilding relationships. Through their phone-buddy program, volunteers like Mr. Hughes are paired with individuals experiencing homelessness like Mr. Collins, offering a lifeline of companionship and understanding.

“I learn a lot more from Roger’s perspective about San Francisco’s issues than I do from the media,” shared Mr. Hughes during an interview at the San Francisco Public Library. Sitting beside him, Mr. Collins echoed his sentiments, highlighting the importance of having someone like Ben who is always there to listen and support him through thick and thin.

Dr. Howard Koh, chair of the Initiative on Health and Homelessness at Harvard University’s Chan School of Public Health, emphasized the critical role of human connection in addressing the needs of California’s homeless population, which numbers nearly 200,000. Beyond housing and material support, individuals experiencing homelessness require a sense of belonging and worth, which initiatives like Miracle Messages seek to provide.

The inception of Miracle Messages in 2014 marked a turning point for its founder, Kevin Adler, who was inspired to create a platform that utilized social media for social good after discovering that his uncle had spent three decades living on the streets. Armed with a newfound perspective on homelessness, Mr. Adler embarked on a mission to humanize the stories of those marginalized in society, reconnecting them with their families and loved ones through the power of technology.

By the close of 2024, Miracle Messages had successfully reunited over 1,000 individuals with their families, thanks to the dedication of volunteers who served as digital detectives and outreach workers. The introduction of Miracle Friends in 2020 further expanded the organization’s impact, with more than 300 pairs participating in the phone-buddy program. In addition to providing cellphones to homeless buddies, Miracle Messages spearheaded a guaranteed basic income program, offering financial stability to participants like Mr. Collins.

As part of the guaranteed-income study, Mr. Collins utilized the funds to cover his basic needs and support his mother, who resided in an assisted living facility. Reflecting on the transformative power of housed individuals assisting their unhoused counterparts, Mr. Adler emphasized the importance of fostering empathy and understanding within communities to combat homelessness effectively.

While most Miracle Friends pairs maintain their connection remotely, Mr. Hughes and Mr. Collins forged a deeper bond through regular face-to-face interactions. Their shared dinners and conversations provided a safe space for them to exchange stories and experiences, bridging the gap between their disparate backgrounds.

During their initial meeting at the San Francisco Medical Respite & Sobering Center, Mr. Hughes and Mr. Collins exchanged tales of their past, with Mr. Collins recounting his journey from homelessness to securing an apartment in an assisted living complex. The newfound sense of stability brought him solace and companionship, transforming his loneliness into a sense of belonging.

For Mr. Hughes, supporting Mr. Collins through his hospitalization and subsequent move to a permanent residence was a testament to the transformative power of friendship. By viewing homelessness through a lens of compassion and understanding, Mr. Hughes believes that more meaningful change can be achieved in addressing the challenges faced by individuals like Mr. Collins.

As the sun sets on another day in San Francisco, the enduring friendship between Ben Hughes and Roger Collins serves as a beacon of hope and connection in a city often characterized by its disparities and divisions. Through simple acts of kindness and empathy, these two individuals have demonstrated the profound impact that human connection can have on transforming lives and communities for the better.