If the customer accepts the increase of five dollars in the price in return for an increase in the number of pieces, or it is known from his usual attitude in transactions with you that he will accept it, there is nothing wrong with that, because the condition of mutual consent between both parties is one of the conditions of the sale being valid, and that applies in your case.
But if he does not accept it, it is not permissible to add the extra piece to what he has purchased from you in return for adding something to the price. Rather if you discover that this addition has been made, then what is required is to give him the choice between sending it in return for the amount mentioned or taking it away from the total that originally agreed upon, if you agree to that.
Allah says (interpretation of the meaning):
âO you who believe! Eat not up your property among yourselves unjustly except it be a trade amongst you, by mutual consentâ
Ibn Maajah (2185) narrated that Abu Saâeed al-Khudri (may Allah be pleased with him) said: The Messenger of Allaah (blessings and peace of Allah be upon him) said: âTransactions may only be done by mutual consent.â
Classed as saheeh by al-Albaani in Saheeh Ibn Maajah.
If the transaction is not done on the basis of agreement, then it comes under the heading of a forced transaction, and is not valid.
Zakariya al-Ansaari said in Asnaâl-Mataalib (2/6):
Forced sales are not valid because of the verse (interpretation of the meaning): âEat not up your property among yourselves unjustlyâ al-Nisaâ 4:29 and because of the report: âTransactions may only be done by mutual consent.â End quote.
Shaykh al-Islam (may Allah have mercy on him) said:
âA forced sale for which there is no legitimate reason is not binding, according to the consensus of the Muslims. End quote.
Majmooâ al-Fataawa, 29/199
The same applies when buying, as was stated in al-Istiqaamah, 2/321
And Allah knows best.
See also the answer the questions no. 1847 and 129847.