Then when he says, But we have received, he shows how knowledge of the Holy Spirit is obtained, saying: But we, filled with the Holy Spirit, have not received the spirit of this world, but the Spirit which is from God. By the word "spirit" is understood a definite vital power, both cognitive and dynamic. Therefore, the spirit of this world can mean the wisdom of this world and the love of this world, by which a man is impelled to do the things of this world. This is not the spirit received by the holy apostles, who rejected and despised the world; rather, they receive the Holy Spirit, by Whom ...their hearts were enlightened and inflamed with the love of God: "The Counselor, the Holy Spirit, whom the Father will send in my name, he will teach you all things" (Jn. 14:26); "But my servant Caleb, because he has a different spirit and has followed me fully, I will bring into the land into which he went." (Num.14:24). But the spirit of this world can err as Is (19:3) attests: "The spirit of the Egyptians within them will be emptied out, and I will confound their plans." However, we received His divine Spirit, that we might understand the gifts bestowed on us by God, i.e., that we may know to what extent God has given divine things to each of us: "Grace was given to each of us according to the measure of Christ's gift" (Eph 4:7).
Or gifts, which are unknown to those not possessing the same Spirit, for "to him that conquers I will give some of the hidden manna, which no one knows except him who receives it" (Rev 2:17). From this it can be gathered that just as no one knows the Father but the Son and he to whom it has pleased the Son to reveal Him, so no one knows the things of the Father and of the Son but the Holy Spirit and he who has received Him (Matt 11:27). This is so, because just as the Son is consubstantial with the Father, so the Holy Spirit with the Father and Son.
Source: Commentary on 1 Corinthians