Keeping rabbits in captivity for commercial purposes, such as farming or selling, is generally considered permissible in Islam as long as the animals are treated humanely, their basic needs are met, and they are not subjected to unnecessary harm or suffering.