A New Jersey homeless man who fell prey to a cruel prank is now the recipient of an outpouring of support from good-willed strangers — and his favorite NFL team.

Ronald Leggatt, 65, was living in a Lakewood, New Jersey, baseball dugout in January when he was approached by a man who offered him $5 to pour coffee on his head. Leggatt complied, even enlisting a friend to help, and was about to accept the stranger's offer to pour a second coffee on his head in exchange for money when a good samaritan intervened and confronted the man.

"I was so broke, I needed the money, to be honest with you," Leggatt told Philadelphia's NBC10.

The incident, in which the man allegedly laughed and filmed Leggatt pouring the coffee on his head, quickly went viral after a witness posted pictures of the interaction, during which Leggatt was wearing a San Francisco 49ers jacket, to Facebook.

Soon after, two GoFundMe pages were established for Leggatt. They have since raised more than $6,000 to help put him up in a hotel and eventually find a permanent housing solution.

Upon hearing of the incident, the 49ers sent Leggatt a care package of team gear, including a hat, stickers and a pin from Superbowl 50.

See also: Sikh YouTube star JusReign asked to remove his turban at San Francisco airport

"The situation that brought Mr. Leggatt's story to our attention was certainly unfortunate and we wanted to make sure he knows we consider him a valuable member of the Faithful," a San Francisco 49ers spokesperson told Mashable. "We hope we were able to bring a smile to his day."

The care package was sent to a local homeless advocate, Rev. Steven Brigham, who posted a YouTube video of Leggatt receiving the package at his hotel.

"My team! My 49ers," Leggatt said after being presented with the package. "The only team I like."

The video shows Leggatt trying on some of his new 49ers gear, which also included a new jacket, and smiling in disbelief.

"To San Francisco 49ers and everyone associated, thank you very much," Leggatt said. "You surprised me to death. I can't believe you knew I was your fan."

The man responsible for the prank later apologized to Leggatt in a video obtained by the Lakewood Scoop, and Leggatt was also taken for a haircut and hot meal by community members.

The incident was investigated by the Lakewood Police Department, but ultimately dismissed because “it did not rise to a criminal act.”

The Lakewood Police Department would like to thank all of you who brought the incident regarding the homeless man to our... Posted by Lakewood Police Department on Wednesday, January 20, 2016

Ultimately, a situation that showcased the dark side of human nature also seems to have brought forth the its best parts, too.

"Somebody meant it to mock Ron as a homeless person, but it turned around where Ron got housing because of the situation," Rev. Brigham told NBC 10. "There’s still some compassion here in this country. Ron might have died this winter in that dugout if he wasn’t rescued by this situation."