Rulings for Keeping and Trading Birds in Islam
It is allowed to keep bird as pet with some stipulations:
First: It should be fed properly
Second: The bird is not the kind of bird that will die if it is caged. As the experts explained, there are several kind of birds that would die if caged. Such birds should not be kept.