Passive voice of ' He is a farmer. '
He was a farmer. You needed to change "is a" to "was". This is because "was" is a passive voice of saying "is".