Modi, who is seeking a rare third consecutive term, referred to Muslims as "infiltrators" during a campaign speech on Sunday, drawing widespread criticism from opposition groups
In a condolence message, the BNP leader prayed for the salvation of the departed soul and expressed sympathy for the bereaved family.
Ershad, who has been on life support for the last 10 days, breathed his last at the Combined Military Hospital in Dhaka on Sunday morning.
The 90-year-old deposed military dictator has been suffering from myelodysplastic syndrome or a low-level of haemoglobin in his blood for long.