Read the Arabic text and available English translation from Riyad as-Salihin, with its supplied source reference.
Sunnah.com : Book 18, Hadith 106
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
قال الله تعالى: أنا أغنى الشركاء عن الشرك، من عمل عملا أشرك فيه معي غيري، تركته وشركه"
Abu Hurairah (May Allah be pleased with him) said:
The Messenger of Allah (ﷺ) said, "Almighty Allah says, 'I am the One Who is most free from want of partners. He who does a thing for the sake of someone else beside Me, I discard him and his polytheism.."
[Muslim].
Full reference and source
Sunnah.com : Book 18, Hadith 106
Arabic/English book : Book 18, Hadith 1616
References, translations and numbering differ between editions. A URL number is an internal app record identifier, not universal hadith numbering. Only supplied grading is displayed; no new authenticity assessment is made.