It depends

Are penalty clauses for non-performance valid in a contract?

It depends which obligation they secure. A penalty for late payment of a debt is an increase on money for the passage of time — that is ribā, and it is not accepted. A penalty for failing to perform an obligation to *do* something — work delivered late, a service not rendered — is accepted, provided it compensates the real loss and not the profit expected.

The honest answer turns on your circumstances. What it hinges on is below.

The long answer

The distinction that decides the matter is not the name of the clause but which obligation stands behind it.

Not accepted when the underlying obligation is a debt of money. Stipulating that someone late in paying must hand over an additional sum is exactly an increase on money for the passing of time, which is the definition of ribā. Calling it a “penalty” rather than “interest” does not change its nature.

Accepted when the obligation is to do something: deliver work, render a service, meet a construction deadline. There the clause compensates a real harm caused by the failure, and is not a yield on money as such.

With one important condition: the compensation must correspond to the loss actually suffered, not to the gain that was expected. A disproportionate clause, designed to punish or to enrich, falls outside the framework even where the obligation is one of performance.

The general command to fulfil undertakings: “O you who have believed, fulfill all contracts. Lawful for you are the animals of grazing livestock except for that which is recited to you in this Qur’ān - hunting not being permitted while you are in the state of iḥrām. Indeed, Allah ordains what He intends.” (Qur’an 5:1)

And the Qur’an's insistence on putting deferred obligations in writing, which is the longest verse in the Book and deals with precisely this: “O you who have believed, when you contract a debt for a specified term, write it down. And let a scribe write it between you in justice. Let no scribe refuse to write as Allah has taught him. So let him write and let the one who has the obligation i.e., the debtor dictate. And let him fear Allah, his Lord, and not leave anything out of it. But if the one who has the obligation is of limited understanding or weak or unable to dictate himself, then let his guardian dictate in justice. And bring to witness two witnesses from among your men. And if there are not two men available, then a man and two women from those whom you accept as witnesses - so that if one of them i.e., the women errs, then the other can remind her. And let not the witnesses refuse when they are called upon. And do not be too weary to write it, whether it is small or large, for its specified term. That is more just in the sight of Allah and stronger as evidence and more likely to prevent doubt between you, except when it is an immediate transaction which you conduct among yourselves. For then there is no blame upon you if you do not write it. And take witnesses when you conclude a contract. Let no scribe be harmed or any witness. For if you do so, indeed, it is grave disobedience in you. And fear Allah. And Allah teaches you. And Allah is Knowing of all things.” (Qur’an 2:282)

What your specific case depends on: whether the secured obligation is money or performance, whether the amount is proportionate to the harm, and what the contract actually says. Commercial contracts commonly mix both kinds in a single document.

Since this is decided by reading the clauses, take it to someone trained in Islamic finance with the contract in front of them, rather than working from the general rule.

What it rests on