All knowledge and wisdom does come from above. Agreed.
Acts 8:14-18
Now when the apostles in Jerusalem heard that Samaria had accepted the word of God, they sent them Peter and John, who went down and prayed for them, that they might receive the holy Spirit, for it had not yet fallen upon any of them; they had only been baptized in the name of the Lord Jesus. Then they laid hands on them and they received the holy Spirit. When Simon saw that the Spirit was conferred by the laying on of the apostles hands ...
Acts 19:1-6
While Apollos was in Corinth, Paul traveled through the interior of the country and came (down) to Ephesus where he found some disciples. He said to them, Did you receive the holy Spirit when you became believers? They answered him, We have never even heard that there is a holy Spirit. He said, How were you baptized? They replied, With the baptism of John. Paul then said, John baptized with a baptism of repentance, telling the people to believe in the one who was to come after him, that is, in Jesus. When they heard this, they were baptized in the name of the Lord Jesus. And when Paul laid (his) hands on them, the holy Spirit came upon them, and they spoke in tongues and prophesied.
All of these people were baptized before they received the Holy Spirit, not after.
Act 16:14-15 And a certain woman named Lydia, a seller of purple, of the city of Thyatira, which worshipped God, heard [us]: whose heart the Lord opened, that she attended unto the things which were spoken of Paul. And when she was baptized, and her household, she besought [us], saying, If ye have judged me to be faithful to the Lord, come into my house, and abide [there]. And she constrained us.
I wouldn't try to make too much out of the Holy Spirit timeline in Acts. You will find it rather confusing as this was the beginning of the church. Rather I think it is reasonable to assume that if you have faith to be baptized, then you must have faith before being baptized.