Sunan Abi Dawud, Hadith 5227

Narrated Imran ibn Husayn: In the pre-Islamic period we used to say: "May Allah make the eye happy for you," and "Good morning" but when Islam came, we were forbidden to say that. AbdurRazzaq said on the authority of Ma'mar: It is disapproved that a man should say: "May Allah make the eye happy for you," but there is no harm in saying: "May Allah make your eye happy.

حَدَّثَنَا سَلَمَةُ بْنُ شَبِيبٍ، حَدَّثَنَا عَبْدُ الرَّزَّاقِ، أَخْبَرَنَا مَعْمَرٌ، عَنْ قَتَادَةَ، أَوْ غَيْرِهِ أَنَّ عِمْرَانَ بْنَ حُصَيْنٍ، قَالَ كُنَّا نَقُولُ فِي الْجَاهِلِيَّةِ أَنْعَمَ اللَّهُ بِكَ عَيْنًا وَأَنْعِمْ صَبَاحًا فَلَمَّا كَانَ الإِسْلاَمُ نُهِينَا عَنْ ذَلِكَ ‏.‏ قَالَ عَبْدُ الرَّزَّاقِ قَالَ مَعْمَرٌ يُكْرَهُ أَنْ يَقُولَ الرَّجُلُ أَنْعَمَ اللَّهُ بِكَ عَيْنًا وَلاَ بَأْسَ أَنْ يَقُولَ أَنْعَمَ اللَّهُ عَيْنَكَ ‏.‏

sunnah.com

also referenced under: Hadith 5208 (Hasan)