In this YouTube video, noted Pakistani scholar, Allama Zamir Akhtar Naqvi claims (in Urdu) that Napoleon wrote a letter or poem in honour of the historical figure Imam Hussain, during a war between the French and the English.
This claim is explained in English on this Facebook page:
On the eve of the war with the British, Napoleon wrote an elegy to Imam Hussain (a.s.) seeking his help which is beautifully translated into Urdu by Allama Zameer Akhtar Naqvi
This is used as evidence that Napoleon embraced Islam, and based his laws upon it.
A comment on that video claims
it can be easily googled and more over it is preserved till now in the great French museum
The Facebook page provides the following references:
Vide, Bonaparte et l'Islam by Cherfils from the Bibliotheque National De France, we find on pages 105 - 125; Vide, David Pidcock to The Sunday Telegraph, contrasting the French hysteric phobia of late with Napoleon Bonaparte's admiration for Islam; Vide, Lincoln: Money Martyred; Omni Publications 1935); Vide, Translations of French Poem by Allama Zameer Akhtar Naqvi
Is this true?
I cannot find any evidence.
I have made a detailed translation of that Urdu poem translated by Allama Zamir Akhtar Naqvi into English and it is over here