Mayor Eric Adams and Police Commissioner Keechant Sewell spoke at the funeral.
"He swore to take an oath to serve and protect. He became the symbol of what's great about this country. Today we celebrate his life," Adams said.
Fayaz's uncle also spoke during the service.
"Adeed was a star of our family. He always admired the NYPD uniform since he saw his uncles wearing them every day," he said.
A viewing took place at the Makki Masjid, located at 1089 Coney Island Ave., from 10 a.m. to 12:30 p.m., followed by a funeral service at 1:15 p.m.
According to authorities, Randy Jones, 38, is alleged to have shot Fayaz, 26, in the head after an attempted robbery disguised as a car sale.
Jones was arraigned Wednesday in Brooklyn criminal court, charged with the first-degree murder of Fayaz. If convicted, he faces life in prison without the possibility of parole. He's scheduled to reappear in court Friday.
Fayaz, a 5-year veteran of the force and a married father of two, died Tuesday evening, just hours after the NYPD announced the arrest of Jones.
Fayaz was off-duty Saturday when he responded to a Facebook Marketplace ad for a Honda Pilot. Fayaz brought a relative and also $24,000 in cash to East New York to make the transaction.
Prosecutors said the choice of vehicle indicates Jones was targeting hard-working families for his victims.
Police allege Jones put Fayaz in a headlock, but when Fayaz broke free, Jones shot him in the head before fleeing in a 2011 BMW. Jones went on the run with his girlfriend and five children, two of whom are his.
He was captured in Rockland County Monday by a joint NYPD/U.S. Marshals task force, and he was taken into custody with Fayaz's own handcuffs.
Essig also said there had been similar robberies set up on social media across the city, and that detectives are now looking into whether Jones is connected with them, or if there are any other suspects.
Jones has a history of arrests, including a strangulation charge. There was also an active bench warrant at the time of his arrest Monday.