لَا ٱلشَّمْسُ يَنۢبَغِى لَهَآ أَن تُدْرِكَ ٱلْقَمَرَ وَلَا ٱلَّيْلُ سَابِقُ ٱلنَّهَارِ ۚ وَكُلٌّ فِى فَلَكٍ يَسْبَحُونَ
It is not allowable for the sun to reach the moon, nor does the night overtake the day, but each, in an orbit, is swimming.
Ya-Sin
لَا ٱلشَّمْسُ يَنۢبَغِى لَهَآ أَن تُدْرِكَ ٱلْقَمَرَ وَلَا ٱلَّيْلُ سَابِقُ ٱلنَّهَارِ ۚ وَكُلٌّ فِى فَلَكٍ يَسْبَحُونَ
It is not allowable for the sun to reach the moon, nor does the night overtake the day, but each, in an orbit, is swimming.
Nearby ayahs help place verse 36:40 in sequence and meaning.
وَٱلشَّمْسُ تَجْرِى لِمُسْتَقَرٍّ لَّهَا ۚ ذَٰلِكَ تَقْدِيرُ ٱلْعَزِيزِ ٱلْعَلِيمِ
And the sun runs [on course] toward its stopping point. That is the determination of the Exalted in Might, the Knowing.
وَٱلْقَمَرَ قَدَّرْنَـٰهُ مَنَازِلَ حَتَّىٰ عَادَ كَٱلْعُرْجُونِ ٱلْقَدِيمِ
And the moon - We have determined for it phases, until it returns [appearing] like the old date stalk.
وَءَايَةٌ لَّهُمْ أَنَّا حَمَلْنَا ذُرِّيَّتَهُمْ فِى ٱلْفُلْكِ ٱلْمَشْحُونِ
And a sign for them is that We carried their forefathers in a laden ship.
وَخَلَقْنَا لَهُم مِّن مِّثْلِهِۦ مَا يَرْكَبُونَ
And We created for them from the likes of it that which they ride.