A person sells something to someone for 3,000 Riyals to be paid in installments over a period of 3 months, bearing in mind that the cost would be 2,000 Riyals if paid in one go. Once the agreement is done, a third person comes along and pays for the goods in one go for 2,000 Riyals, and then agrees to take on the three installments from the buyer for 3,000 Riyals. Is this transaction correct?