It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "The lawful is clear and the unlawful is clear, and between the two are some doubtful matters. Whoever falls into them is liable to fall into sin, and whoever avoids them is safer with regard to his religion. (His example) is like a shepherd who grazes his animals beside a protected pasture, and whoever grazes beside a protected pasture is about to fall into it. Every king has a protected pasture, and the protected pasture of Allah Almighty is what He has made unlawful."
This hadith has a supporting narration (shahid) in the Sahih from the hadith of Sayyiduna al-Nu'man bin Bashir (may Allah be pleased with him).