It is narrated from Sayyiduna Anas (may Allah be pleased with him) that indeed the Prophet (peace and blessings be upon him) said: "Whoever tries to accomplish his task through sin will never have his hope fulfilled; rather, he will come very close to that which he was trying to avoid."
Hadith Referenceمسند الشهاب / 513
Hadith Gradingمحدثین:إسناده ضعيف جدا
Hadith Takhrij«إسناده ضعيف جدا ، وأخرجه حلية الأولياء 5/ 263» عبدالوہاب بن نافع منکر الحدیث اور أحمد بن محمد بن یونس متہم ہے ۔