Sunan Abu Dawud #4647
Model Behavior of the Prophet (Kitab Al-Sunnah) 42:52
Safinah reported the Messenger of Allah (ﷺ) as saying:
The caliphate of Prophecy will last thirty years; then Allah will give the Kingdom to whom he wishes; or his kingdom to whom he wishes.