There is no exact or precise answer to this but farming was probably created in the middle east/far east of the world because rice and wheat was the primary crop. However, farming was also invented independently across other parts of the world as well.
Hope my answer helped :)