As mentioned in previous posts, here and here, the hadith are reports of doings and sayings collected from the life of the prophet Mohammed.
The Messenger of God said to a certain person, “Have you come to ask me about right and wrong?” Then he struck his breast with his fingers and said, “Consult yourself. Consult your heart. Consult your heart. Consult your heart. Right is what your inner self and heart feel secure with, and wrong is what agitates your inner self and brings doubt to the heart, no matter how much advice people give you.”
Oh yes, yes, yes.