A Brooklyn bodega worker accused of setting a mentally ill homeless man on fire and forcing his employee to film the attack has been found unfit to stand trial.

Suliman Ahmed was recommitted to the Department of Health and Mental Hygiene by a court-appointed psychologist, after a psych exam showed he was not mentally well enough to be tried for torching vagrant Tasheen Hand as he slept peacefully on an East New York sidewalk around midnight on September 3, 2012.

Priscilla Hand, the mother of the victim, in court Friday.John M. Mantel

The unstable man allegedly approached Hand — who also suffers from severe mental illness — and doused him with lighter fluid before kicking a flaming book of matches onto his back.