Does resampling cause phase shifts?
Upsample first by 12 and then downsample by 13, you'll get very close to 37Mhz, 36.92MHz to be precise, should be good enough.

If you want exactly 37Mhz, then upsample by 37 and then downsample by 40, but this is more calculation intensive with not much gain, so better opt for the first strategy. Also antialsiaing demands are less for the first case.