Marqueis Gray has already confirmed the news via his Twitter account.
Armando Salguero of the Miami Herald reports that the Dolphins are also signing Marqueis Gray on Thursday.
Gray, 26, wound up signing on with the 49ers as an undrafted free agent out of Minnesota back in 2013. He lasted just a few months in San Francisco before he was waived and later claimed by the Browns.
After a brief stint with the Vikings, Gray was once again claimed off of waivers by the Bills.
In 2015, Gray appeared in four games for the Bills and recorded one reception for two yards receiving and no touchdowns.