Traced to Ka'b al-Ahbar (automatic guess): a report of earlier scriptures, not a hadith of the Prophet ﷺ.
لتستصعبن الأرض بأهلها حتى تكون أصعب من ظهر البرذون الصعب، ثم تميل بكم ميلة فتعتقون أرقاءكم، ثم تسكن زمانا، ثم يندم من أعتق، ثم تميل ميلة أخرى، حتى يقول القائل: ربنا نعتق نعتق، فيقول الله تعالى: كذبتم، بل أنا أعتق
You will make the land difficult for its people until it becomes more difficult than the hard back of a bardhuan. Then it will move towards you and you will free your slaves. Then it will be calm for a period of time, and then the one who freed will regret it. Then it will shift another way, until the one who says: Our Lord, we will free, we will free, then Allah Almighty will say: You lied, but I will free.
بقيةصفوانشريح بن عبيدautomatic reading, unverified