Rite Aid Corp. executives said the drugstore chain had a sharp rise in sales of hydroxychloroquine, the prescription malaria medicine that President Trumphas urged Americans to take during the coronavirus pandemic despite some public-health concerns.

The decades-old drug hasn’t been proven to treat Covid-19, but doctors and scientists are...