@Russell Ponce
Anyone telling you that double closing are "illegal" is either uninformed, or works for a title company that does not like back-to-back closings. Some title companies have taken the position that they want a day or two or three separation between the A-B-C transactions, but that is a CYA position of the title company so they can clearly show that the end buyers funds were not used for your purchase. As to the "full value to the seller" that is more applicable to short sales, in which case you DO need to disclose in your purchase contract that you are an investor and you retain the right to sell the property for a profit. The bank can either choose to accept your contract or not.
It appears that @Michelle White
gets it. I know some title companies in Chicago do want to see the separation by 2-3 days, but again that is a situation where they are not competent or comfortable enough that they can document that there were two distinct transactions which were separately funded, the first by you with transactional funding and the second with other funds from your end buyer.