This can be an ethical or an unethical practice depending on how it is done. An attorney will divide fees among all joint attorneys, ethical, but it is unethical when the attorney has solicited business for another attorney.
Black’s Law Online Dictionary