The Messenger of Allah (ﷺ) said: Yes, you have done it, but you have been forgiven for the sincerity of the statement: "There is no god but Allah."
Abu Dawud said: This tradition means that he did not command him to make atonement
In-book : Book 22, Hadith 34
English translation : Book 21, Hadith 3269