Basking in reflected glory
Basking in reflected glory (BIRGing) is a self-serving cognition whereby an individual associates themselves with known successful others such that the winner's success becomes the individual's own accomplishment. The affiliation of another's success is enough to stimulate self-glory.
Source: Wikipedia — Basking in reflected glory (CC BY-SA 4.0)