BRRI Question

If I flip a home under LLC and sell it to spouse with bank funding, is there any legal issue? Please let me know.