حَدَّثَنَا عَمْرُو بْنُ عُثْمَانَ، حَدَّثَنَا بَقِيَّةُ، حَدَّثَنِي صَفْوَانُ، حَدَّثَنِي شُرَيْحُ بْنُ عُبَيْدٍ، عَنِ الزُّبَيْرِ بْنِ الْوَلِيدِ، عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ، قَالَ كَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم إِذَا سَافَرَ فَأَقْبَلَ اللَّيْلُ قَالَ ‏"‏يَا أَرْضُ رَبِّي وَرَبُّكِ اللَّهُ أَعُوذُ بِاللَّهِ مِنْ شَرِّكِ وَشَرِّ مَا فِيكِ وَشَرِّ مَا خُلِقَ فِيكِ وَمِنْ شَرِّ مَا يَدِبُّ عَلَيْكِ وَأَعُوذُ بِاللَّهِ مِنْ أَسَدٍ وَأَسْوَدَ وَمِنَ الْحَيَّةِ وَالْعَقْرَبِ وَمِنْ سَاكِنِ الْبَلَدِ وَمِنْ وَالِدٍ وَمَا وَلَدَ ‏"
Translation
Narrated Abdullah ibn Amr

When the Messenger of Allah (ﷺ) was travelling and night approached, he would say: "O earth, my Lord and your Lord is Allah. I seek refuge in Allah from your evil, the evil of what is in you, the evil of what has been created in you, and the evil of what crawls upon you. I seek refuge in Allah from the lion and the black snake, from snakes and scorpions, from the dwellers of the land, and from a parent and what he begets."