It is narrated from Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Give this Ummah the glad tidings of eminence and dignity, of power in the lands, of victory and of elevation in the religion; and whoever among them does a deed of the Hereafter for the sake of the world will have no share in the Hereafter."
Imam Ahmad (may Allah have mercy on him) also narrated it through the chain of Abd al-Razzaq (may Allah have mercy on him), Sufyan (may Allah have mercy on him) and Abu Salamah Abd al-Aziz bin Muslim (may Allah have mercy on him).
And Abdullah (may Allah have mercy on him) narrated it through Abu al-Sha'tha' Ali bin al-Hasan al-Wasiti (may Allah have mercy on him), Yahya bin Yaman (may Allah have mercy on him), Sufyan (may Allah have mercy on him) and Mughirah al-Sarraj (may Allah have mercy on him), from al-Rabi' (may Allah have mercy on him).
Related hadith on this topic