Abu Huraira reported Allah's Messenger (ﷺ) as saying
The yawning as from the devil. So when one of you yawns he should try to restrain it as far as it lies in his power.