There is undoubtedly, don't have a link handy. For shame. I do know that the Book of Abraham and the Book of Moses (LDS scriptures, found in the Pearl of Great Price) discuss it.
A basic overview: humans existed as spirits before the earth was created. it was understood that we would come to this earth (well, and all the others) and be at risk of sinning. Jesus said that he would be our savior, and thus redeem us from our sins so that we can return to God. Satan said that he could do the same thing by taking away our free agency so we couldn't sin, and he would be more than happy to take credit for it. There were of course some flaws in that plan (the main one being that if we didn't have free agency, there would be no reason for us to be mortal and experience life in the first place). The first plan was chosen, but Satan and a third of the spirits rebelled and were cast out.
A basic overview: humans existed as spirits before the earth was created. it was understood that we would come to this earth (well, and all the others) and be at risk of sinning. Jesus said that he would be our savior, and thus redeem us from our sins so that we can return to God. Satan said that he could do the same thing by taking away our free agency so we couldn't sin, and he would be more than happy to take credit for it. There were of course some flaws in that plan (the main one being that if we didn't have free agency, there would be no reason for us to be mortal and experience life in the first place). The first plan was chosen, but Satan and a third of the spirits rebelled and were cast out.