I don't know if it would qualify as a sin but you're inviting to something good and not doing it yourself so rather you are not taking advantage of the rewards of such a deed.
If you were telling others not to sin but did it yourself, then that would be a different as seen here:
If a person exhorts his brother concerning a sin that he himself has fallen into, although this is something that is not befitting for the Muslim, it does not come under the heading of hypocrisy or showing off.
The Standing Committee was asked:
If I exhort my brothers and warn them against certain sins, but I myself fall into those sins, am I regarded as a hypocrite?
The Committee replied: You have to repent from sins and exhort your brothers to avoid them. It is not permissible for you to commit sins and fail to advise your brothers, because this is combining two sins. You have to repent to Allah from that whilst still advising your brothers. That is not hypocrisy, but you have fallen into something for which Allah criticises those who do it, as He, may He be glorified, says (interpretation of the meaning):
“O you who believe! Why do you say that which you do not do?
Most hateful it is with Allah that you say that which you do not do” [as-Saff 61:2-3]
“Enjoin you Al-Birr (piety and righteousness and each and every act of obedience to Allah) on the people and you forget (to practise it) yourselves, while you recite the Scripture! Have you then no sense?” [al-Baqarah 2:44].
End quote from
Fataawa al-Lajnah ad-Daa’imah, 12/268
more here:
https://islamqa.info/en/175916