Often children know when they do something wrong but they try to push the borders and therefor they are to blame. If you blame someone else they learn they can get away with anything and that is not...
If you are referring to: "Don't blame it on sunshine, Don't blame it on moonlight, Don't blame it on good times". Then the song you are after is: Blame it on the Boogie, by The Jackson Five.