William Clayton recounts his role as scribe for the text of D&C 132.
William Clayton, Letter to Madison Scott, November 11 1871, CHL, MS 3423
Now I say to you, as I am ready to testify to all the world and on which testimony I am most willing to meet all the Latter-day Saints and all apostates in time and through all eternity, I did write the revelation on Celestial marriage given through the Prophet Joseph Smith, on the 12th day of July 1843. When the revelation was written there was no one present except the Prophet Joseph, his brother Hyrum and myself. It was written in the small office upstairs in the rear of the brick store which stood on the banks of the Mississippi river. It took some three hours to write it. Joseph dictated sentence by sentence and I wrote it as dictated. After the whole was written Joseph requested me to read it slowly and carefully which I did, and he then pronounced it correct. The same night a copy was taken by Bishop Whitney, which copy is now here, and which I know and testify is correct. The original was destroyed by Emma Smith.