Abu Hurairah reported,

One day, the Messenger of Allah ﷺ was sitting out in the open among the people when a man came to him and asked, "Messenger of Allah, when is the Hour?"He replied, "The one being asked about it knows no more than the one asking. But I will tell you about its signs. When a slave-woman gives birth to her mistress, that is one of its signs. When the barefoot and naked become leaders of the people, that is one of its signs. When the shepherds of sheep compete with one another in raising tall buildings, that is one of its signs. It is among five things that none knows but Allah."Then the Messenger of Allah ﷺ recited, "Indeed, with Allah is knowledge of the Hour. He sends down the rain and knows what is in the wombs" [Luqman 31:34].

Ibn Majah 4044

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا إسمعيل ابن علية عن أبي حيان عن أبي زرعة

عن أبي هريرة قال

كان رسول الله ﷺ يوما بارزا للناس فأتاه رجل فقال يا رسول الله متى الساعة فقال ما المسئول عنها بأعلم من السائل ولكن سأخبرك عن أشراطها إذا ولدت الأمة ربتها فذاك من أشراطها وإذا كانت الحفاة العراة رءوس الناس فذاك من أشراطها وإذا تطاول رعاء الغنم في البنيان فذاك من أشراطها في خمس لا يعلمهن إلا الله فتلا رسول الله ﷺ {إن الله عنده علم الساعة وينزل الغيث ويعلم ما في الأرحام} الآية

ابن ماجه 4044صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Tribulations
Chapter
Signs of the Hour
Numbering
Darussalam 4044
Ibn Majah 4044