It is narrated from Sayyiduna Anas (may Allah be pleased with him) that when the time of death drew near for the Messenger of Allah (peace and blessings be upon him), his general counsel (peace and blessings be upon him) was this: "(Keep up) the prayer, and take care of the rights of those under your authority (male and female slaves)," until these words began to rattle in his blessed chest (peace and blessings be upon him), and his blessed tongue could not fully utter them.
Imam Ibn Majah (may Allah have mercy on him) narrated it from Abu al-Ash'ath Ahmad bin al-Miqdam.