Dubai (DXB), AE to Lagos (LOS), NG: 3 sets of rules apply.
Nigeria's aviation regulator sets minimum passenger rights for flights within Nigeria, flights leaving Nigeria, and flights into Nigeria. Compensation is a percentage of your ticket price: at least 25% on domestic flights and 30% on international flights, triggered by things like being bumped, late cancellations and very long domestic delays. Airlines must also give refreshments, meals, hotels and refunds or rebooking, depending on how long you wait.
Applies because: Flights from another country to Nigeria, unless you already received benefits or compensation and assistance in that other country (19.2.1.1(b)). The text does not limit this to Nigerian airlines.
The UAE has no fixed cash compensation for delays, cancellations or denied boarding. The federal GCAA rule requires airlines to give you information, meals, communication and, for long delays, a hotel and transport, plus rebooking or a flight back when flights are cancelled or you are bumped. To recover money you actually lost, rely on the Montreal Convention, UAE law and the airline's own conditions of carriage.
Applies because: Disruptions (denied boarding, delay, cancellation, diversion) at UAE airports, for all commercial air transport operators flying to or from the UAE. Disruptions at airports outside the UAE fall under local rules there (CAR-PWP GM1 to PWP.A.003)
Baseline for international trips The Montreal Convention is the worldwide treaty that makes airlines liable for injury or death, lost, damaged or delayed bags, and losses caused by flight delays on most international trips. It does not give fixed cash payouts for delays. You get back the costs you can prove, up to set limits, unless the airline shows it did everything reasonable to avoid the problem. Strict time limits apply, so report baggage problems in writing quickly.
Applies because: International journeys between two countries that are parties to the Convention (most countries are). Some countries are only parties to the older Warsaw Convention.