If I were you, I wouldn’t pay until the day escrow closes if possible and write in the memo clearly that it’s for rent and deposit and for what months. That way if things fall apart or not, you can easily show that this payment was in no way related to the sale of the house.