Is it allowed for an agent to buy a specified thing for himself instead of the principal?
No, it is not permissible for an agent instructed to buy a specified thing to buy it for himself. The purchase must be made for the principal, even if the agent has been authorized to purchase it for himself.