Abu Ayyub Khalid bin Zaid Al-Ansari (May Allah be pleased with him) reported:
A man came to Messenger of Allah (ﷺ) and said, "Direct me to a deed which will admit me to Jannah and take me away from the Fire". The Messenger of Allah (ﷺ) said, "Worship Allah and associate no partner with Him, perform As-Salat, pay Zakat, and maintain the ties of kinship".[Al-Bukhari and Muslim].
Arabic/English book reference: Book 1, Hadith 331