The quote below is taken from Teaching Of The Prophet Joseph Smith. I added the bold underline print so that you would know these were all references to Adam and Adam-ondi-ahman. These are notes taken from Wilford Woodruff's Pocket Companion, therefore some of the information is sketchy.
The Prophet on Priesthood
The Priesthood was first given to Adam; he obtained the First Presidency, and held the keys of it from generation to generation. He obtained it in the Creation, before the world was formed, as in Genesis 1:26, 27, 28. He had dominion given him over every living creature. He is Michael the Archangel, spoken of in the Scriptures. Then to Noah, who is Gabriel: he stands next in authority to Adam in the Priesthood; he was called of God to this office, and was the father of all living in this day, and to him was given the dominion. These men held keys first on earth, and then in heaven.
The Priesthood is an everlasting principle, and existed with God from eternity, and will to eternity, without beginning of days or end of years. The keys have to be brought from heaven whenever the Gospel is sent. When they are revealed from heaven, it is by Adam's authority.
Adam the Oldest Man
Daniel in his seventh chapter speaks of the Ancient of Days; he means the oldest man, our Father Adam, Michael, he will call his children together and hold a council with them to prepare them for the coming of the Son of Man. He (Adam) is the father of the human family, and presides over the spirits of all men, and all that have had the keys must stand before him in this grand council. This may take place before some of us leave this stage of action. The Son of Man stands before him, and there is given him glory and dominion. Adam delivers up his stewardship to Christ, that which was delivered to him as holding the keys of the universe, but retains his standing as head of the human family.
The Spirit of Man
The spirit of man is not a created being; it existed from eternity, and will exist to eternity. Anything created cannot be eternal; and earth, water, etc., had their existence in an elementary state, from eternity. Our Savior speaks of children and says, Their angels always stand before my Father. The Father called all spirits before Him at the creation of man, and organized them. He (Adam) is the head, and was told to multiply. The keys were first given to him, and by him to others. He will have to give an account of his stewardship, and they to him.
Keys Given to Peter, James and John
The Priesthood is everlasting. The Savior, Moses, and Elias, gave the keys to Peter, James and John, on the mount, when they were transfigured before him. The Priesthood is everlasting-without beginning of days or end of years; without father, mother, etc. If there is no change of ordinances there is no change of Priesthood. Wherever the ordinances of the Gospel are administered, there is the Priesthood.
Descent of Priesthood
How have we come at the Priesthood in the last days? It came down, down, in regular succession. Peter, James, and John had it given to them and they gave it to others. Christ is the Great High Priest; Adam next. Paul speaks of the Church coming to an innumerable company of angels-to God the Judge of all-the spirits of just men made perfect; to Jesus the Mediator of the new covenant. (Hebrews 12:22-24.)
I saw Adam in the valley of Adam-ondi-Ahman. He called together his children and blessed them with a patriarchal blessing. The Lord appeared in their midst, and he (Adam) blessed them all, and foretold what should befall them to the latest generation.
This is why Adam blessed his posterity; he wanted to bring them into the presence of God. They looked for a city, etc., "whose builder and maker is God." (Hebrews 11:10.) Moses sought to bring the children of Israel into the presence of God, through the power of the Priesthood, but he could not. In the first ages of the world they tried to establish the same thing; and there were Eliases raised up who tried to restore these very glories, but did not obtain them; but they prophesied of a day when this glory would be revealed. Paul spoke of the dispensation of the fullness of times, when God would gather together all things in one, etc.; and those men to whom these keys have been given, will have to be there; and they without us cannot be made perfect.
These men are in heaven, but their children are on the earth. Their bowels yearn over us. God sends down men for this reason. "And the Son of Man shall send forth His angels, and they shall gather out of His kingdom all things that give offense and them that do iniquity." (Matthew 13:41.) All these authoritative characters will come down and join hand in hand in bringing about this work.
We Cannot be Perfect Without Our Dead
The Kingdom of Heaven is like a grain of mustard seed. The mustard seed is small, but brings forth a large tree, and the fowls lodge in the branches. The fowls are the angels. Thus angels come down, combine together to gather their children, and gather them. We cannot be made perfect without them, nor they without us; when these things are done, the Son of Man will descend, the Ancient of Days sit; we may come to an innumerable company of angels, have communion with and receive instruction from them. Paul told about Moses' proceedings; spoke of the children of Israel being baptized. (1 Cor. 10:1-4.) He knew this, and that all the ordinances and blessings were in the Church. Paul had these things, and we may have the fowls of heaven lodge in the branches, etc.
The "Horn" made war with the Saints and overcame them, until the Ancient of Days came; judgment was given to the Saints of the Most High from the Ancient of Days; the time came that the Saints possessed the Kingdom. This not only makes us ministers here, but in eternity.
No Salvation Without Revelation
Salvation cannot come without revelation; it is in vain for anyone to minister without it. No man is a minister of Jesus Christ without being a Prophet. No man can be a minister of Jesus Christ except he has the testimony of Jesus; and this is the spirit of prophecy. Whenever salvation has been administered, it has been by testimony. Men of the present time testify of heaven and hell, and have never seen either; and I will say that no man knows these things without this.
Signs of Second Coming Have Commenced
Men profess to prophesy. I will prophesy that the signs of the coming of the Son of Man are already commenced. One pestilence will desolate after another. We shall soon have war and bloodshed. The moon will be turned into blood. I testify of these things, and that the coming of the Son of Man is nigh, even at your doors. If our souls and our bodies are not looking forth for the coming of the Son of Man; and after we are dead, if we are not looking forth, we shall be among those who are calling for the rocks to fall upon them.
Hearts of Children Turn to Fathers
The hearts of the children of men will have to be turned to the fathers, and the fathers to the children, living or dead, to prepare them for the coming of the Son of Man. If Elijah did not come, the whole earth would be smitten.
There will be here and there a Stake [of Zion] for the gathering of the Saints. Some may have cried peace, but the Saints and the world will have little peace from henceforth. Let this not hinder us from going to the Stakes; for God has told us to flee, not dallying, or we shall be scattered, one here, and another there. There your children shall be blessed, and you in the midst of friends where you may be blessed. The Gospel net gathers of every kind.
I prophesy, that that man who tarries after he has an opportunity of going, will be afflicted by the devil. Wars are at hand; we must not delay; but are not required to sacrifice. We ought to have the building up of Zion as our greatest object. When wars come, we shall have to flee to Zion. The cry is to make haste. The last revelation says, Ye shall not have time to have gone over the earth, until these things come. It will come as did the cholera, war, fires, and earthquakes; one pestilence after another, until the Ancient of Days comes, then judgment will be given to the Saints.
(Joseph Smith, Teachings of the Prophet Joseph Smith, selected and arranged by Joseph Fielding Smith, p.157- 160)