Flattery for Knowledge
Some interpreters believe that flattery in a dream, if it is for seeking knowledge or assistance in acts of righteousness, is not disliked. Instead, it may indicate achieving honor, rectitude in religion, and fulfilling one's goals. It has been reported that flattery is not a characteristic of a believer except when seeking knowledge, and some have said that for those accustomed to flattery in their life, it is not disliked in interpretation, otherwise it signifies humiliation and disgrace.
Per Ibn Sirin's Muntakhab al-Kalam fi Tafsir al-Ahlam