If someone requires a service dog for a disability or a specific need, most Islamic scholars consider it permissible to obtain and train a dog for this purpose. The principle of necessity (darurah) allows for flexibility in such cases. However, it is still advisable to consult with a knowledgeable Islamic scholar to ensure compliance with Islamic teachings.