Sheikh prophet muhammad pbuh said that whoever makes his goal this world will lead a wretched life, poverty will fill his eyes and he will only get from this world what was decreed for him. How do i know if my goal is the dunya? is it determined by the time I spend at my job? This is giving me anxiety, can you give a link to a detailed explanation or a website?

If what drives you is worldly matters and it controls your life to the extent that if you need to delay a prayer or consume haram or be silent to haram and you do this, this is a clear indication that your priority is his life and not the hereafter.

Please visit here for detailed fatwa information directly from highly respected scholar