A Forest Hills man was charged with using anti-Muslim slurs while repeatedly stabbing a man who was unlocking a Kew Gardens Hills mosque for morning prayers last year, the Queens district attorney’s office said Friday.