Abdur Rahman ibn Mu’awiyah reported: A man asked the Messenger of Allah, peace and blessings be upon him, saying, “O Messenger of Allah, what is lawful and unlawful for me?” The Prophet struck his chest and he said, “Whatever your heart rejects, then abandon it.”
Source: al-Zuhd wal-Raqā’iq 1147
Grade: Sahih (authentic) according to Al-Albani
عن عبد الرحمن بن معاوية قَالَ سَأَلَ رَجُلٌ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ يَا رَسُولَ اللَّهِ مَا يَحِلُّ لِي مِمَّا يَحْرُمُ عَلَيَّ فَقَالَ وَنَقَرَ بِأُصْبُعِهِ مَا أَنْكَرَ قَلْبُكَ فَدَعْهُ
1147 الزهد والرقائق لابن المبارك
5564 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح الجامع
Source: Daily Hadith