It is narrated from Sayyiduna Abdullah bin Umar bin al-Khattab (may Allah be pleased with them both) that when the Messenger of Allah (peace and blessings be upon him) was on a military expedition or a journey and night came upon him, he would make this supplication: "O earth! My Lord and your Lord is Allah. I seek refuge with Allah from your evil, from the evil of what is in you, from the evil of what has been created in you, and from the evil of what has crawled upon you. I seek refuge with Allah from the evil of the lion, the black serpent, the snake and the scorpion, from the evil of the dwellers of the land (the jinn), and from the evil of the father (Iblis) and what he begot."
The wording (of the narrations) is the same, except that in the narration of Abu Nu'aym it is "what crawls upon you", and in the narration of al-Tarqufi it is "from the evil of every lion and black serpent".
Imam Ahmad (may Allah have mercy on him) narrated it from Abu al-Mughirah, and in his narration it is "from the evil of every lion and black serpent".
And Imam Abu Dawud (may Allah have mercy on him) narrated it from Amr bin Uthman.
And Imam al-Nasa'i (may Allah have mercy on him) narrated it in "Amal al-Yawm wa al-Laylah" from Ishaq bin Ibrahim; both of them (Amr bin Uthman and Ishaq) narrated it from Baqiyyah, from Safwan.