وَٱلشَّمْسُ تَجْرِى لِمُسْتَقَرٍّ لَّهَا ۚ ذَٰلِكَ تَقْدِيرُ ٱلْعَزِيزِ ٱلْعَلِيمِ
And the sun runs [on course] toward its stopping point. That is the determination of the Exalted in Might, the Knowing.
Ya-Sin
وَٱلشَّمْسُ تَجْرِى لِمُسْتَقَرٍّ لَّهَا ۚ ذَٰلِكَ تَقْدِيرُ ٱلْعَزِيزِ ٱلْعَلِيمِ
And the sun runs [on course] toward its stopping point. That is the determination of the Exalted in Might, the Knowing.
Nearby ayahs help place verse 36:38 in sequence and meaning.
سُبْحَـٰنَ ٱلَّذِى خَلَقَ ٱلْأَزْوَٰجَ كُلَّهَا مِمَّا تُنۢبِتُ ٱلْأَرْضُ وَمِنْ أَنفُسِهِمْ وَمِمَّا لَا يَعْلَمُونَ
Exalted is He who created all pairs - from what the earth grows and from themselves and from that which they do not know.
وَءَايَةٌ لَّهُمُ ٱلَّيْلُ نَسْلَخُ مِنْهُ ٱلنَّهَارَ فَإِذَا هُم مُّظْلِمُونَ
And a sign for them is the night. We remove from it [the light of] day, so they are [left] in darkness.
وَٱلْقَمَرَ قَدَّرْنَـٰهُ مَنَازِلَ حَتَّىٰ عَادَ كَٱلْعُرْجُونِ ٱلْقَدِيمِ
And the moon - We have determined for it phases, until it returns [appearing] like the old date stalk.
لَا ٱلشَّمْسُ يَنۢبَغِى لَهَآ أَن تُدْرِكَ ٱلْقَمَرَ وَلَا ٱلَّيْلُ سَابِقُ ٱلنَّهَارِ ۚ وَكُلٌّ فِى فَلَكٍ يَسْبَحُونَ
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.