What he told a man who wanted one answer
The people around thought he was being rude.
تَعْبُدُ اللَّهَ لاَ تُشْرِكُ بِهِ شَيْئًا، وَتُقِيمُ الصَّلاَةَ، وَتُؤْتِي الزَّكَاةَ، وَتَصِلُ الرَّحِمَ
Taʿbudu-Llāha lā tushriku bihi shayʾā, wa tuqīmu-ṣ-ṣalāh, wa tuʾti-z-zakāh, wa taṣilu-r-raḥim
“You worship Allah and associate nothing with Him, you establish the prayer, you give the zakat, and you keep the ties of kinship.”
Where this comes from
A man said: tell me a deed that will put me in the Garden. The people said: what is wrong with him. He said: leave him, he has a need. Then he gave four things, and the fourth is the one that involves other people.
The full narration
Narrated Abu Aiyub Al-Ansari:A man said, "O Allah's Messenger (ﷺ)! Inform me of a deed which will make me enter Paradise." The people said, "What is the matter with him? What is the matter with him?" Allah's Messenger (ﷺ) said, "He has something to ask (what he needs greatly)." The Prophet (ﷺ) said (to him), (In order to enter Paradise) you should worship Allah and join none in worship with Him: You should offer prayers perfectly, give obligatory charity (Zakat), and keep good relations with your Kith and kin." He then said, "Leave it!" (The sub-narrator said, "It seems that the Prophet (ﷺ) was riding his she camel
Source
Ṣaḥīḥ al-Bukhārī · 5983
- Agreed upon as authentic (al-Bukhārī / Muslim)