I wrote a check of 30k to my brother for the nominee adjustment purose on the 2nd house that I have sold.

I found out that the nominee adjustment won't work; so I need that money back from him and he already cashed that check.  Will IRS know this?  What do I need to do?  I guess he has to write me a check back.