All perfect praise be to Allah, The Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad is His slave and Messenger.
There is no good in any action (or work) that makes one heedless of the obligatory prayer.
We have not found what you mentioned as a hadeeth in the resource books of the Sunnah that we have at hand despite their abundant number; not even in the books that were written about the weak and fabricated ahaadeeth.
So we do not know from where you brought this.
First, one has to find its source and look at its chain of narrators and whether it is authentic or weak, and then one looks at its meaning.
Allah knows best.