In AV 'ability' is either material (Le 27:8; Ezr 2:69; Ac 11:29) or personal (Da 1:4; Mt 25:15) capacity. The mod. meaning ('mental power') is not found in AV.
To one he gave five talents, to another two, and to another one, to each according to his ability. Then he went on his journey.
And the disciples determined, each according to his ability, to send relief for the brethren living in Judea.