I don't understand what he meant by that. But whatever, he has no right to tell you that you can't buy a gift for a friend. He has no right to object to you going out with a friend. He has no right locking you in the house.
He sounds awful. Please talk to womens aid. Talk to your friend. Start making plans to leave him.
You deserve better, someone who respects you.