Valmiki Ramayana Ayodhya Kanda Sarga 109 Shloka 2
Original Shlokaभवान्मे प्रियकामार्थं वचनं यदिहोक्तवान्। अकार्यं कार्यसङ्काशमपथ्यं पथ्यसम्मतम्।।2.109.2।।
1 source checked for this shloka
भवान् you, मे to me, प्रियकामार्थम् with a desire to please, यत् what, वचनम् words, इह now, उक्तवान् has spoken, कार्यसङ्काशम् in the guise of an action fit to be done, अकार्यम् is unfit to be done, पथ्यसम्मतम् appears to be beneficial, अपथ्यम् is detrimental.
Althoug what you have said appears to be salutary, it is actually unwholesome. It appears to be beneficial but is really detrimental.