GR is not an example: Hilbert deduced the correct action functional (following geometric rather than physical intuition) at roughly the same time as Einstein worked out the (equivalent) field equations. See https://en.m.wikipedia.org/wiki/Einstein%E2%80%93Hilbert_act...