If a sentence has a good meaning, does that alone establish it as a saying of the Prophet ﷺ?
No. Having a good meaning is one thing; establishing that he ﷺ said it is another.
• Liking a statement does not establish its attribution.
• Establishing the attribution requires scholarly investigation of sanad and matn.
The rules for this investigation are studied in Uṣūl al-Ḥadīth.