Sahih al-Bukhari Book 78, Hadith 13
It was said" "O Allah's Messenger! Inform me of a deed which will make me enter Paradise."
(continues through a different chain in the next hadith)
My father, seeing a silken cloak being sold, said, "O Allah's Messenger (ﷺ)! Buy this and wear it on Fridays and when the foreign delegates pay a visit to you." He said, "This is worn only by that person who will have no share in the Hereafter." Later a few silken cloaks were given to the Prophet (ﷺ) as a gift, and he sent one of those cloaks to `Umar. `Umar said (to the Prophet), "How can I wear it while you have said about it what you said?" The Prophet (ﷺ) said, "I did not give it to you to wear but to sell or to give to someone else to wear." So `Umar sent it to his (pagan) brother who was from the inhabitants of Mecca before he (`Umar's brother) embraced Islam.
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."