Freeing a slave on behalf of someone
Q: I request clarification on the reason for karahat in freeing a slave on behalf of someone.
In ‘Uqood al-Jawahir, the sharh of Ashbah, an explanation is given regarding why freeing a slave for the sake of someone is considered makrooh. It explains that when one frees a slave out of honour, gratitude, or veneration for someone, it may resemble an act of worship, which is exclusive to Allah Ta‘ala, and hence makrooh or even impermissible.
Would like to know:
1. Is this explanation found in any mu‘tabar fiqh books?
2. What is the exact ruling of freeing a slave in the name or honour of someone?
3. Is there a distinction in ruling between expressing gratitude and actual intent of ibadah in such cases?
Your guidance, along with references from classical fiqh sources, will be highly appreciated.