Great minds think alike!
I believe that Joseph Smith must have studied Muhammadism as an inspiration because of the parallels between the two religions.
Islam gave him the inspiration and the nerve to concoct his story and seed it with gems to draw a cult following.
Perhaps of interest, more parallels here:
https://bsimmons.wordpress.com/2006/11/29/i-will-be-a-second-mohammed/