It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "If the Hour is established while one of you has a small palm shoot in his hand, then if he is able not to stand up before planting it, let him certainly plant it."
This is the wording, except that in the narration of Yazid (may Allah have mercy on him) the words are "fa-istata'a" (and he was able).
Imam Ahmad (may Allah have mercy on him) also narrated it through Waki' (may Allah have mercy on him), from Hammad bin Salamah (may Allah have mercy on him).
And Abu Dawud al-Tayalisi (may Allah have mercy on him) also narrated it from Hammad (may Allah have mercy on him).