From Sahih Bukhari (Hadith 3289):
Narrated Abu Huraira:The Prophet (ﷺ) said, "Yawning is from Satan and if anyone of you yawns, he should check his yawning as much as possible, for if anyone of you (during the act of yawning) should say: 'Ha', Satan will laugh at him
Reference: Bukhari 3289