Which sentence are you talking about?
I told 'that I am going to stay home' to him is wrong.
I told that to you before.is not natural,
I told 'that I am going to stay home' to him is wrong.
If you like it, feel free to use it.
A noun-clause contains a finite verb, so it cannot be used entirely as a noun.
very many
That doesn't really help us help you.
Well, it's less unnatural than I told 'that I am going to stay home' to him, but where does that get us? Trying to analyse unnatural sentences is not going to help many people learn natural patterns.