“What the Messenger of Allah (ﷺ) most enjoined when he was dying and breathing his last was: The prayer; and those whom your right hands possess.”
Sunan Ibn Majah Book 22, Hadith 3