Answer
Neither, they were friends and rivals. Schelling was an important figure in the German Idealism movement, and his work was a major influence on Hegel. However, the two men had very different philosophical ideas, and they were often at odds with each other. Despite their differences, they remained friends and continued to correspond with each other until Schelling's death in 1854.