Mishkat al-Masabih 2439
وَعَنِ ابْنِ عُمَرَ قَالَ: كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا سَافَرَ فَأَقْبَلَ اللَّيْلُ قَالَ: «يَا أَرْضُ رَبِّي وَرَبُّكِ اللَّهُ أَعُوذُ بِاللَّهِ مِنْ شَرِّكِ وَشَرِّ مَا فِيكِ وَشَرِّ مَا خُلِقَ فِيكِ وَشَرِّ مَا يَدِبُّ عَلَيْكِ وَأَعُوذُ بِاللَّهِ مِنْ أَسَدٍ وَأَسْودَ وَمِنَ الْحَيَّةِ وَالْعَقْرَبِ وَمِنْ شَرِّ سَاكِنِ الْبَلَدِ وَمِنْ والدٍ وَمَا ولد» . رَوَاهُ أَبُو دَاوُد
From Ibn ʿUmar, who said: When the Messenger of Allah ﷺ travelled and night came on, 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 creeps upon you. I seek refuge in Allah from lions and black snakes, from the snake and the scorpion, from the evil of the inhabitants of the land, and from a parent and what he begets." Reported by Abu Dawud.