"Compared to the rest of the patients, those who received famotidine (the active ingredient in Pepcid) had a greater than 2-fold decreased risk of either dying or being intubated," according to a statement by authors of the study at Columbia University Irving Medical Center.
You can read about the trial here. https://www.cnn.com/2020/05/09/health/famotidine-covid-19-correlation-study/index.html
The article doesn't mention that the idea to do the trial came from Chinese doctors in Wuhan who had noticed that poor people with heartburn (Pepcid is cheap so they often choose it) fared better than richer ones who had heartburn (they tend to take more expensive medication rather than Pepcid). So this trial was done in the US to see if famotidine had any effect.