How to properly cite a domain-specific result of a generic concept from a paper?
To be pedantic, you can say something like "The following equation (eq-A) is from [paper-A], in [paper-B] the special case (eq-B) is derived from the above."

Season to taste.