These two hadiths do not conflict in any way, because each serves a distinct purpose and addresses an entirely different matter.
The first hadith rejects the use of stars for horoscopes, divination, and determining good or bad fortune, since only the Creator of the universe knows what is hidden and what is manifest.
The second hadith urges people to avoid travelling and marrying when the “moon is in Scorpio.” In reality, this hadith emphasises the effects that the particular positions of the heavenly bodies may have on physical and psychological conditions. Consider, for example, the moon’s influence—especially during the new moon and the full moon—on the tides, and the effect of this lunar phenomenon on the body’s organs and limbs, its water reserves, the circulation of the blood, and its various fluids. Since this particular period is unsuitable for conception, people are urged to avoid it. Likewise, when the “moon is in Scorpio,” it will certainly be possible, given the unusual effects of this configuration on the body’s processes of absorption and elimination and on a person’s physical and psychological condition, for certain difficulties to arise. Avoiding this period would therefore be in the interests of travellers and those planning to marry.
The “moon in Scorpio” is like stormy weather, or a period of heavy snowfall and rain. Clearly, travelling or undertaking certain sensitive activities in such conditions would not be sensible.
The “moon in Scorpio” is like an eclipse. Not every action is undertaken under every set of circumstances.
It seems that when the “moon is in Scorpio,” a person is exposed to the emission of particular waves, and these two specific activities—travelling and marriage—should take place in a calm and quiet setting.
The “moon in Scorpio” serves as a warning signal, like an alarm bell: once informed of it, we can plan our activities properly.
الله اعلم بحقائق و دقائق افعاله.