Traced to Ka'b al-Ahbar (automatic guess): a report of earlier scriptures, not a hadith of the Prophet ﷺ.
إذا ما رأيت السماء قد قحطت فلم تمطر شيئا، ورأيت الأرض قد أجدبت فلم تنبت شيئا، ورجعت الأنهار والعيون إلى عناصرها، واصفر الريحان، فانظر الدجال متى يصبحك أو يمسيك
If you see that the sky has dried up and it has not rained anything, and you have seen the earth that has become barren and has not produced anything, and the rivers and springs have returned to their elements, and the basil has turned yellow, then see the Dajjal when he comes to you in the morning or evening.
بقيةصفوانشريح بن عبيدكعبأعرابياعلمكautomatic reading, unverified