It was given by revelation of the Holy Spirit to the apostles. It is also Joel 2 as quoted by Peter in his Pentecost sermon.
Though on the day of Pentecost Peter did not understand to the full extent of what God had done, he was given scripture to base this truth on.
Where did Paul get the Apostle, Prophet, Evangelist, Pastor, and Teacher as an office that is held by some from?
It is said of the Jews in the synagogue of Berea that they searched the scriptures daily to see if what they were saying was so.
I could daisy pick my way through scripture for these and find them, according to the definition of the words, and the symbolism of them in situation's, but not in the order that he laid them out.
The correlation with the five natural gifts of our senses, that give us a husband that is not our own is evident in those who trust them to do this. You then have a mixture of both of these as it relates to the individuals perception of themselves, the one of their fives senses blended with the one given by these five fold gifts, which brings one as far as the edge of the Jordan as to see it, but cannot cause you to enter into the promise, let alone remain.
The time frame for these equate to the wilderness which lends itself to the feast of Pentecost (knowledge) outside of the year of jubilee where the land (our soul) experiences a rest, and is the acceptable year.