Last week, the 44-year-old rapper collapsed outside his Beverly Hills, Calif., condominium.
See Also: Rihanna Says She Hates Being Single
He was rushed to a Los Angeles hospital, where he was pronounced dead on Nov. 8.
“We extend our heartfelt condolences at this difficult time. He will be remembered for his infectious optimism and many contributions to American music. Please know that you and your family will be in our thoughts and prayers,” the president wrote in a letter, which the Rev. Al Sharpton read at the service, The Associated Press reported.