A Sanford man will serve more than a decade in federal prison after being convicted of selling fentanyl and cocaine, the United States Attorney's Office for the Eastern District of North Carolina said Tuesday.