Any number of miracle potions or witches brews are recommended for guns, based on automotive oils or greases. The reality is that they need something, and the owner's manuals of the day had recommendations.
https://snwcdnprod.azureedge.net/sites/default/files/owners-manuals/S&W_Metal_Frame_Autos_10-01-15.pdf
Page 29: "firearm lubricant"
Which should be all we need to know, right?
For us it should be able to stay on and keep working. If it creeps and doesn't drip, great. Secondly, some hunters think it should have absolutely no smell. It doesn't hurt if it's inexpensive instead of costing $32 a quart but sold in 1 oz bottles. Search is your friend, but to sum up a few hundred pages here and there in posts on forums, if it can lubricate steel machinery heavier than a sewing machine somebody is a fan.
Yet a thread like this is destined to go dozens of pages because "firearms lube can't be good enough." Yet, firearms makers sell it - and forum posters universally despise it when labeled by their favorite gun makers. I sell auto parts and some folks won't touch an oil filter unless branded the same as their vehicle, yet that same guy will go for a full five minutes about "Gunmaker X" 10000 Lube is just salad dressing in a can. "Gunmaker X" is sitting in his holster.
I won't even touch the subject of WD 40. I will suggest it leads to the same reasons we should adopt the philosophy of not discussing politics and religion, because you will find someone who is a fan of just about anything. Did you know certain cultures consider monkey brains a delicacy, too?
Gun oil. Not going there. 1911 vs Glock, .45ACP vs 9mm, and Who Shot Kennedy? are tamer subjects. I once heard of a professional instructor who demonstrated that a feminine hygiene product could be used as a gun lube. Me, I tend to keep an eye out for C Rat peanut butter when I can find it dated before 1974. That stuff was legendary.
In it's absence I just use something I find on the shelf at the local gun store/department, it says right on the label in no uncertain terms it's the best ever sold. Just pick one of those.