Abu Aliyah on Ikhlas: Only do good deeds for Allah, no one else

Abu al-Aliyah reported: The companions of Muhammad, peace and blessings be upon him, said to me, “Do not do a good deed for anyone besides Allah, for Allah will leave you in the charge of the one for whom you did it.”

Source: al-Zuhd li Hannād Ibn al-Sarī 2/435

عَنْ أَبِي الْعَالِيَةِ قَالَ قَالَ لِي أَصْحَابُ مُحَمَّدٍ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ لَا تَعْمَلْ لِغَيْرِ اللَّهِ فَيَكِلُكَ اللَّهُ إِلَى مَنْ عَمِلْتَ لَهُ

2/435 الزهد لهناد بن السري