Mendelssohn wrote the privately commissioned piece, a song titled The Heart of Man is Like a Mine, in 1842. It was never published but the original manuscript has now emerged in a private collection in the US.
http://www.bbc.com/news/entertainment-arts-27253932
BBC online