وَإِلَىٰ رَبِّكَ فَارْغَبْ
And direct your longing to your Lord.
In 94:8, the prepositional phrase ilā rabbika precedes its verb fa-rghab. The preposing brings the direction of aspiration into focus. After the command to strive, the final verse identifies the ultimate object of that effort.
The ordering has rhetorical force within the devotional context, but it should not be overextended into an assertion that every permissible worldly preference is thereby prohibited.