Ferrari hit 9 of 12 shots. He added seven assists and six rebounds.
Yoeli Childs had 28 points and 14 rebounds for the Cougars (18-11, 10-4), whose five-game winning streak was broken. TJ Haws added 25 points. Gavin Baxter had 8 points, seven rebounds and five blocks.
The Dons improve to 2-0 against the Cougars for the season. San Francisco defeated BYU 82-63 on Jan. 19. San Francisco matches up against Santa Clara on the road on Saturday. BYU takes on Gonzaga on the road on Saturday.